mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
remove unused parameter
This commit is contained in:
parent
c98eb3867f
commit
9d037a0ab6
@ -68,7 +68,7 @@ func NewCmdCompletion(f cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
Short: "Output shell completion code for the given shell (bash or zsh)",
|
Short: "Output shell completion code for the given shell (bash or zsh)",
|
||||||
Long: completion_long,
|
Long: completion_long,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
err := RunCompletion(f, out, cmd, args)
|
err := RunCompletion(out, cmd, args)
|
||||||
cmdutil.CheckErr(err)
|
cmdutil.CheckErr(err)
|
||||||
},
|
},
|
||||||
ValidArgs: shells,
|
ValidArgs: shells,
|
||||||
@ -77,7 +77,7 @@ func NewCmdCompletion(f cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func RunCompletion(f cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error {
|
func RunCompletion(out io.Writer, cmd *cobra.Command, args []string) error {
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
return cmdutil.UsageError(cmd, "Shell not specified.")
|
return cmdutil.UsageError(cmd, "Shell not specified.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user