You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flags.StringSliceVar(&ids, "shared-bw-id", nil, "Required. Resource ID of shared bandwidth instances to delete")
203
217
req.EIPBandwidth=flags.Int("eip-bandwidth-mb", 1, "Optional. Bandwidth of the joined EIPs,after deleting the shared bandwidth instance")
204
-
req.PayMode=flags.String("charge-mode", "", "Optional. Charge mode of joined EIPs,after deleting the shared bandwidth")
218
+
req.PayMode=flags.String("traffic-mode", "", "Optional. The charge mode of joined EIPsafter deleting the shared bandwidth. Accept values:Bandwidth,Traffic")
205
219
req.Region=flags.String("region", base.ConfigIns.Region, "Optional. Region, see 'ucloud region'")
206
220
req.ProjectId=flags.String("project-id", base.ConfigIns.ProjectID, "Optional. Project-id, see 'ucloud project list'")
fmt.Println(`Please append 'complete -C /usr/local/bin/ucloud ucloud' to file '~/.bash_profile'
58
-
If the following scripts are included in '~/.bash_profile', please remove it. Those scripts used to auto complete words before ucloud cli v0.1.3"
59
-
60
-
if [ -f $(brew --prefix)/etc/bash_completion ]; then
61
-
. $(brew --prefix)/etc/bash_completion
62
-
fi
63
-
source ~/.ucloud/ucloud.sh`)
57
+
fmt.Println(`Please append 'complete -C $(which ucloud) ucloud' to file '~/.bash_profile'`)
64
58
65
59
} elseifplatform=="linux" {
66
-
fmt.Println(`Please append 'complete -C /usr/local/bin/ucloud ucloud' to file '~/.bashrc'
67
-
If the following scripts are included in '~/.bashrc', please remove it. Those scripts used to auto complete words before ucloud cli v0.1.3"
68
-
69
-
if [ -f /etc/bash_completion ]; then
70
-
. /etc/bash_completion
71
-
fi
72
-
73
-
source ~/.ucloud/ucloud.sh`)
60
+
fmt.Println(`Please append 'complete -C $(which ucloud) ucloud' to file '~/.bashrc'`)
74
61
}
75
62
}
76
63
77
64
funczshCompletion(cmd*cobra.Command) {
78
65
fmt.Println(`Please append the following scripts to file '~/.zshrc'.
66
+
79
67
autoload -U +X bashcompinit && bashcompinit
80
-
complete -F /usr/local/bin/ucloud ucloud`)
81
-
fmt.Println("If the following scripts are included in '~/.bash_profile' or '~/.bashrc', please remove it. The scripts used to auto complete words before ucloud cli v0.1.3")
0 commit comments