mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 04:57:03 +08:00
cmd: replace deprecate func use (#5170)
This commit is contained in:
parent
798c4a3ba4
commit
f20a8e7aa0
|
@ -456,7 +456,7 @@ argument of --directory. If the directory does not exist, it will be created.
|
|||
`, rootCmd.Root().Name()),
|
||||
DisableFlagsInUseLine: true,
|
||||
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
|
||||
Args: cobra.ExactValidArgs(1),
|
||||
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
switch args[0] {
|
||||
case "bash":
|
||||
|
|
Loading…
Reference in New Issue
Block a user