feat: Adds install-dependencies command.
This commit is contained in:
@@ -23,6 +23,17 @@ public extension CliClient {
|
||||
try await runCommand(quiet: quiet, shell: shell, args)
|
||||
}
|
||||
|
||||
func installDependencies() async throws {
|
||||
guard let url = Bundle.module.url(forResource: "Brewfile", withExtension: nil) else {
|
||||
throw CliClientError.brewfileNotFound
|
||||
}
|
||||
try await runCommand(
|
||||
quiet: false,
|
||||
shell: .zsh(useDashC: true),
|
||||
"brew", "bundle", "--file", url.cleanFilePath
|
||||
)
|
||||
}
|
||||
|
||||
func runPlaybookCommand(
|
||||
_ options: PlaybookOptions,
|
||||
logging loggingOptions: LoggingOptions
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import Foundation
|
||||
|
||||
public enum CliClientError: Error {
|
||||
case brewfileNotFound
|
||||
case encodingError
|
||||
case playbookDirectoryNotFound
|
||||
case templateDirectoryNotFound
|
||||
|
||||
4
Sources/CliClient/Resources/Brewfile
Normal file
4
Sources/CliClient/Resources/Brewfile
Normal file
@@ -0,0 +1,4 @@
|
||||
brew "ansible"
|
||||
brew "imagemagick"
|
||||
cask "mactex-no-gui"
|
||||
brew "pandoc"
|
||||
Reference in New Issue
Block a user