cli/cli/command
Sebastiaan van Stijn 0adaf6be3b
verify that DisableFlagsInUseLine is set for all commands
This replaces the visitAll recursive function with a test that verifies that
the option is set for all commands and subcommands, so that it doesn't have
to be modified at runtime.

We currently still have to loop over all functions for the setValidateArgs
call, but that can be looked at separately.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-09-01 09:39:46 +02:00
..
builder verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
checkpoint verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
commands Register CLI commands implicitly 2025-08-21 07:16:35 +02:00
completion cli/command/completion: deprecate NoComplete 2025-08-30 12:00:34 +02:00
config verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
container verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
context verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
formatter vendor: github.com/moby/moby/api, moby/moby/client 7145e7666b8f (master) 2025-08-26 20:02:30 +02:00
idresolver vendor: github.com/moby/moby/api, moby/moby/client 7145e7666b8f (master) 2025-08-26 20:02:30 +02:00
image verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
inspect cli/command/inspect: minor cleanup and improvements 2025-05-16 14:10:31 +02:00
manifest verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
network verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
node verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
plugin verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
registry verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
secret verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
service verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
stack verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
swarm verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
system verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
task vendor: github.com/moby/moby/api, moby/moby/client 7145e7666b8f (master) 2025-08-26 20:02:30 +02:00
testdata
trust verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
volume verify that DisableFlagsInUseLine is set for all commands 2025-09-01 09:39:46 +02:00
cli.go return early if GODEBUG set or context is default 2025-08-29 14:31:21 +02:00
cli_options.go cli: reduce uses of pkg/errors for stdlib errors 2025-08-11 19:00:02 +02:00
cli_options_test.go
cli_test.go rename function to fit what it is doing 2025-08-29 14:08:15 +02:00
context.go update go:build tags to go1.23 to align with vendor.mod 2025-04-17 10:43:47 +02:00
context_test.go update go:build tags to go1.23 to align with vendor.mod 2025-04-17 10:43:47 +02:00
defaultcontextstore.go cli: reduce uses of pkg/errors for stdlib errors 2025-08-11 19:00:02 +02:00
defaultcontextstore_test.go remove aliases for containerd/errdefs, disallow docker/errdefs 2025-07-28 14:55:43 +02:00
registry.go vendor: github.com/moby/moby/api, moby/moby/client 7145e7666b8f (master) 2025-08-26 20:02:30 +02:00
registry_test.go vendor: github.com/moby/moby/api, moby/moby/client 7145e7666b8f (master) 2025-08-26 20:02:30 +02:00
telemetry.go cli/command: un-export ResourceAttributesEnvvar, DockerCliAttributePrefix 2025-03-03 14:21:45 +01:00
telemetry_docker.go cli: reduce uses of pkg/errors for stdlib errors 2025-08-11 19:00:02 +02:00
telemetry_docker_test.go command: change drive to lowercase for wsl path 2024-09-18 10:59:08 +01:00
telemetry_options.go cli: make initializing the global meter- and tracing providers optional 2024-06-24 15:44:20 +02:00
telemetry_utils.go cli: reduce uses of pkg/errors for stdlib errors 2025-08-11 19:00:02 +02:00
telemetry_utils_test.go cli/command: remove redundant capturing of loop vars in tests (copyloopvar) 2024-11-05 10:14:30 +01:00
utils.go cli: reduce uses of pkg/errors for stdlib errors 2025-08-11 19:00:02 +02:00
utils_test.go cli/command: move prompt utilities to separate package 2025-04-11 12:23:16 +02:00