From 75d80775cef2d4197203ccd0a380cb9549911bdf Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 23 Oct 2024 13:14:07 +0000 Subject: [PATCH] Disable file completion for `--blkio-weight*` Signed-off-by: Harald Albers --- cli/command/container/completion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 3d7902b063..e7169a6e5d 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -60,6 +60,8 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("add-host", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("annotation", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("attach", completion.FromList("stderr", "stdin", "stdout")) + _ = cmd.RegisterFlagCompletionFunc("blkio-weight", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("blkio-weight-device", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("cap-add", completeLinuxCapabilityNames) _ = cmd.RegisterFlagCompletionFunc("cap-drop", completeLinuxCapabilityNames) _ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)