Disable file completion for `--health-*`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2024-10-23 17:26:56 +00:00
parent d963cfc964
commit 3ab5af735a
1 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,12 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
_ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames)
_ = cmd.RegisterFlagCompletionFunc("gpus", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("group-add", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-cmd", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-interval", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-retries", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-start-interval", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-start-period", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("health-timeout", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli))
_ = cmd.RegisterFlagCompletionFunc("platform", completion.Platforms)
_ = cmd.RegisterFlagCompletionFunc("pull", completion.FromList(PullImageAlways, PullImageMissing, PullImageNever))