feat: Updates 'extraArgs' naming to 'extraOptions' as it's more inline with the usage of them
This commit is contained in:
@@ -25,16 +25,24 @@ public extension CliClient {
|
||||
|
||||
func installDependencies(
|
||||
quiet: Bool = false,
|
||||
shell: String? = nil
|
||||
shell: String? = nil,
|
||||
extraArgs: [String]? = nil
|
||||
) async throws {
|
||||
guard let url = Bundle.module.url(forResource: "Brewfile", withExtension: nil) else {
|
||||
throw CliClientError.brewfileNotFound
|
||||
}
|
||||
var arguments = [
|
||||
"brew", "bundle",
|
||||
"--file", url.cleanFilePath
|
||||
]
|
||||
if let extraArgs {
|
||||
arguments.append(contentsOf: extraArgs)
|
||||
}
|
||||
|
||||
try await runCommand(
|
||||
quiet: quiet,
|
||||
shell: shell.orDefault,
|
||||
"brew", "bundle",
|
||||
"--file", url.cleanFilePath
|
||||
arguments
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user