From c01d31a2a98b4353c34c8b6925ecb4d3f41bb3ce Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 3 May 2024 10:55:39 -0500 Subject: [PATCH] Starting implementation of ExoPackages to query external packages repositories. --- src/ExoRepo/YQ.class.st | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ExoRepo/YQ.class.st b/src/ExoRepo/YQ.class.st index eaa491a..ae831fc 100644 --- a/src/ExoRepo/YQ.class.st +++ b/src/ExoRepo/YQ.class.st @@ -24,10 +24,16 @@ YQ class >> binaryFile [ ^ FileLocator home / 'scoop/shims/yq.exe' ] +{ #category : #accessing } +YQ class >> exoPackage [ + ^ ExoPackage new + repository: self repository +] + { #category : #accessing } YQ class >> install [ ^ ExoPackage new - repository: 'https://github.com/mikefarah/yq'; + repository: self repository; lastReleaseData ] @@ -47,3 +53,8 @@ YQ class >> jsonToYaml: aDictionary [ Smalltalk os isWindows ifTrue: [ ^ LibC resultOfCommand: 'yq -p=json ', jsonFile fullName ]. ] + +{ #category : #accessing } +YQ class >> repository [ + ^ 'https://github.com/mikefarah/yq' +]