Starting implementation of ExoPackages to query external packages repositories.
This commit is contained in:
parent
c9aea4ac14
commit
c01d31a2a9
@ -24,10 +24,16 @@ YQ class >> binaryFile [
|
|||||||
^ FileLocator home / 'scoop/shims/yq.exe'
|
^ FileLocator home / 'scoop/shims/yq.exe'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
YQ class >> exoPackage [
|
||||||
|
^ ExoPackage new
|
||||||
|
repository: self repository
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
YQ class >> install [
|
YQ class >> install [
|
||||||
^ ExoPackage new
|
^ ExoPackage new
|
||||||
repository: 'https://github.com/mikefarah/yq';
|
repository: self repository;
|
||||||
lastReleaseData
|
lastReleaseData
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -47,3 +53,8 @@ YQ class >> jsonToYaml: aDictionary [
|
|||||||
Smalltalk os isWindows
|
Smalltalk os isWindows
|
||||||
ifTrue: [ ^ LibC resultOfCommand: 'yq -p=json ', jsonFile fullName ].
|
ifTrue: [ ^ LibC resultOfCommand: 'yq -p=json ', jsonFile fullName ].
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
YQ class >> repository [
|
||||||
|
^ 'https://github.com/mikefarah/yq'
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user