Improve shell completion for docker secret and docker config subcommands by thaJeztah · Pull Request #6446 · docker/cli (original) (raw)

added 4 commits

September 10, 2025 11:40

@thaJeztah

These were remnants from some earlier implementation.

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

This command takes no arguments, so should not provide completion.

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

These commands accept two arguments; the first is a custom name, the second is either a filename or "-" to create from STDIN.

With this patch:

# does not provide completion
docker secret create <tab>

# starts providing completion once a non-empty name is provided
docker secret create somename<tab>
file.txt other-file.txt

Signed-off-by: Sebastiaan van Stijn github@gone.nl

Benehiko

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})