1
0
mirror of https://github.com/docker/cli.git synced 2026-01-06 05:41:44 +03:00

cli/command/secret: remove completion for "ls"

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-09-10 09:53:34 +02:00
parent 1336f51e6a
commit d67dad3fb4

View File

@@ -31,7 +31,7 @@ func newSecretListCommand(dockerCLI command.Cli) *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
return runSecretList(cmd.Context(), dockerCLI, options)
},
ValidArgsFunction: completeNames(dockerCLI),
ValidArgsFunction: cobra.NoFileCompletions,
DisableFlagsInUseLine: true,
}