Disable file completion for `--cpu*`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2024-10-23 13:39:28 +00:00
parent 00e3b7cdcc
commit 4450f48f07
1 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,14 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
_ = cmd.RegisterFlagCompletionFunc("cap-drop", completeLinuxCapabilityNames)
_ = cmd.RegisterFlagCompletionFunc("cgroup-parent", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cgroupns", completion.FromList("host", "private"))
_ = cmd.RegisterFlagCompletionFunc("cpu-period", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpu-quota", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpu-rt-period", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpu-rt-runtime", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpu-shares", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpus", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpuset-cpus", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("cpuset-mems", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)
_ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames)
_ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli))