We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e544d6 commit 9a0c78fCopy full SHA for 9a0c78f
1 file changed
cli-plugins/manager/cobra.go
@@ -57,7 +57,7 @@ func AddPluginCommandStubs(dockerCLI config.Provider, rootCmd *cobra.Command) (e
57
},
58
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
59
// Delegate completion to plugin
60
- cargs := []string{p.Path, cobra.ShellCompRequestCmd, p.Name}
+ cargs := []string{p.Path, cobra.ShellCompRequestCmd, p.Name} //nolint:prealloc // no need to over-complicate things.
61
cargs = append(cargs, args...)
62
cargs = append(cargs, toComplete)
63
os.Args = cargs
0 commit comments