fix(cmd/ry): silence cobra error dup + fix bucket/dns Use&Args warts

This commit is contained in:
2026-08-13 12:21:36 +08:00
parent 66a7bdcbd5
commit 706fe752a0
3 changed files with 7 additions and 7 deletions
+3 -4
View File
@@ -42,13 +42,12 @@ func Cmd(rySDK **sdk.RainyunSDK, out **output.Printer) *cobra.Command {
}
bucketCmd := &cobra.Command{
Use: "bucket <instance-id>",
Use: "bucket",
Short: "Manage buckets",
Args: cobra.ExactArgs(1),
}
bucketListCmd := &cobra.Command{
Use: "list",
Use: "list <instance-id>",
Short: "List buckets",
RunE: func(cmd *cobra.Command, args []string) error {
instanceID, err := strconv.Atoi(args[0])
@@ -71,7 +70,7 @@ func Cmd(rySDK **sdk.RainyunSDK, out **output.Printer) *cobra.Command {
}
bucketCreateCmd := &cobra.Command{
Use: "create <name>",
Use: "create <instance-id> <name>",
Short: "Create a bucket",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {