Disable file completion for `--workdir`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2024-10-24 14:16:46 +00:00
parent 8afd8dd21a
commit 61e803c2aa
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) {
_ = cmd.RegisterFlagCompletionFunc("uts", completion.NoComplete)
_ = cmd.RegisterFlagCompletionFunc("volume-driver", completion.FromList("local"))
_ = cmd.RegisterFlagCompletionFunc("volumes-from", completion.ContainerNames(dockerCli, true))
_ = cmd.RegisterFlagCompletionFunc("workdir", completion.NoComplete)
}
// completeIpc implements shell completion for the `--ipc` option of `run` and `create`.