feat: Adds install-dependencies command.

This commit is contained in:
2024-12-12 13:39:11 -05:00
parent 56a0bca00c
commit 2b265a4ca5
7 changed files with 44 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
import ArgumentParser
import CliClient
import CliDoc
import Dependencies
struct InstallDependenciesCommand: AsyncParsableCommand {
static let commandName: String = "install-dependencies"
static let configuration = CommandConfiguration(
commandName: commandName,
abstract: createAbstract("Ensure required dependencies are installed"),
discussion: Discussion {
Note {
"Homebrew is required to install dependencies."
}
}
)
func run() async throws {
@Dependency(\.cliClient) var cliClient
try await cliClient.installDependencies()
}
}

View File

@@ -11,7 +11,8 @@ struct UtilsCommand: AsyncParsableCommand {
""",
subcommands: [
GenerateProjectTemplateCommand.self,
GenerateConfigurationCommand.self
GenerateConfigurationCommand.self,
InstallDependenciesCommand.self
]
)

View File

@@ -19,7 +19,6 @@ struct DecryptCommand: AsyncParsableCommand {
)
var output: String?
// FIX:
mutating func run() async throws {
@Dependency(\.cliClient) var cliClient
@@ -32,11 +31,5 @@ struct DecryptCommand: AsyncParsableCommand {
options.vaultOptions(arguments: args, configuration: nil),
logging: options.loggingOptions(commandName: Self.commandName)
)
// try await runVault(
// commandName: Self.commandName,
// options: options,
// args
// )
}
}