Adding Brew functionaity.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-08-22 17:26:05 -05:00
parent cc98ba1367
commit 1ab0fccff0

View File

@ -15,3 +15,12 @@ Brew class >> install [
shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'; shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"';
runAndWait) runAndWait)
] ]
{ #category : #accessing }
Brew class >> install: packageName [
Smalltalk os isWindows ifTrue: [ ^ nil ].
^ (GtSubprocessWithInMemoryOutput new
shellCommand: 'brew install ', packageName;
runAndWait;
stdout)
]