支持策略创建、删除,脚本列表、创建、删除、获取、使用

This commit is contained in:
algotao
2025-11-10 15:57:31 +08:00
parent f9b7857b24
commit 00fb793d9a
17 changed files with 1939 additions and 273 deletions

View File

@@ -15,6 +15,10 @@ func RunTarget(args ...string) error {
return RunTargetHelp(args...)
case "list":
return RunTargetList(args...)
case "create":
return RunTargetCreate(args...)
case "delete":
return RunTargetDelete(args...)
default:
err := fmt.Errorf(`unknown command "%s"`+"\n"+`Run 'saastool target help' for usage`, name)
fmt.Fprintln(os.Stderr, err)
@@ -33,6 +37,8 @@ Usage: saastoola target COMMAND [OPTIONS]
Commands:
list List targets
create Create a new target
delete Delete an existing target
"help" is the default command.