Disable file completion for `--dns*`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2024-10-24 18:34:31 +00:00
parent 285d0e32be
commit 14038a915d
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
_ = cmd.RegisterFlagCompletionFunc("device-read-iops", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("device-read-iops", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("device-write-bps", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("device-write-bps", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("device-write-iops", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("device-write-iops", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("dns", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("dns-option", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("dns-search", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames) _ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)
_ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames) _ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames)
_ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli)) _ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli))