feat: Working on moving commands to cli-client
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user