Adding helper methods for package management.
This commit is contained in:
parent
25b91645e3
commit
bbd924b079
@ -4,6 +4,14 @@ Class {
|
||||
#category : #ExoRepo
|
||||
}
|
||||
|
||||
{ #category : #accessing }
|
||||
Brew class >> help [
|
||||
^ (GtSubprocessWithInMemoryOutput new
|
||||
shellCommand: 'brew help';
|
||||
runAndWait;
|
||||
stdout)
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Brew class >> install [
|
||||
"This is a preliminary starting installation script that is not working.
|
||||
@ -24,3 +32,17 @@ Smalltalk os isWindows ifTrue: [ ^ nil ].
|
||||
runAndWait;
|
||||
stdout)
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Brew class >> isInstalled [
|
||||
^ self help isEmptyOrNil not.
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Brew >> install: packageName [
|
||||
^ GtSubprocessWithInMemoryOutput new
|
||||
shellCommand: 'brew install ', packageName;
|
||||
runAndWait;
|
||||
stdout
|
||||
|
||||
]
|
||||
|
@ -59,6 +59,11 @@ Nimble class >> installed [
|
||||
stdout) lines
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Nimble class >> isInstalled [
|
||||
^ self version isEmptyOrNil not
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Nimble class >> version [
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user