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