mirror of https://github.com/docker/cli.git
Disable file completion for `--annotation`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
d9766a3c65
commit
98d5b0389d
|
@ -58,6 +58,7 @@ var restartPolicies = []string{
|
||||||
// addCompletions adds the completions that `run` and `create` have in common.
|
// addCompletions adds the completions that `run` and `create` have in common.
|
||||||
func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
|
func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
|
||||||
_ = cmd.RegisterFlagCompletionFunc("add-host", completion.NoComplete)
|
_ = cmd.RegisterFlagCompletionFunc("add-host", completion.NoComplete)
|
||||||
|
_ = cmd.RegisterFlagCompletionFunc("annotation", completion.NoComplete)
|
||||||
_ = cmd.RegisterFlagCompletionFunc("cap-add", completeLinuxCapabilityNames)
|
_ = cmd.RegisterFlagCompletionFunc("cap-add", completeLinuxCapabilityNames)
|
||||||
_ = cmd.RegisterFlagCompletionFunc("cap-drop", completeLinuxCapabilityNames)
|
_ = cmd.RegisterFlagCompletionFunc("cap-drop", completeLinuxCapabilityNames)
|
||||||
_ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)
|
_ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)
|
||||||
|
|
Loading…
Reference in New Issue