feat: Working on moving commands to cli-client

This commit is contained in:
2024-12-12 07:46:26 -05:00
parent 8302ede99e
commit ce6eb3ec2f
13 changed files with 134 additions and 199 deletions

View File

@@ -55,17 +55,17 @@ struct GenerateConfigurationCommand: AsyncParsableCommand {
let actualPath: String
if let path {
actualPath = "\(path)/config"
} else {
let path = "~/.config/hpa-playbook/"
try await cliClient.runCommand(
quiet: false,
shell: globals.shellOrDefault,
"mkdir", "-p", path
)
actualPath = "\(path)/config"
}
// if let path {
// actualPath = "\(path)/config"
// } else {
// let path = "~/.config/hpa-playbook/"
// try await cliClient.runCommand(
// quiet: false,
// shell: globals.shellOrDefault,
// "mkdir", "-p", path
// )
// actualPath = "\(path)/config"
// }
fatalError()
// try cliClient.createConfiguration(actualPath, json)