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
+2 -3
View File
@@ -41,13 +41,12 @@ func Cmd(rySDK **sdk.RainyunSDK, out **output.Printer) *cobra.Command {
}
dnsCmd := &cobra.Command{
Use: "dns <domain-id>",
Use: "dns",
Short: "Manage DNS records",
Args: cobra.ExactArgs(1),
}
dnsListCmd := &cobra.Command{
Use: "list",
Use: "list <domain-id>",
Short: "List DNS records",
RunE: func(cmd *cobra.Command, args []string) error {
id, err := strconv.Atoi(args[0])