DockerCLI/cli/command
Sebastiaan van Stijn 20d1b661bc
cli/command: use shallower interface for completions
The completion functions only need the API-client, and not all of
the CLI. However, passing the API-client as argument would mean
that the API-client is initialized early, which may not be what
we want, so instead, defining an APIClientProvider interface to
preserve the behavior of initializing when needed only.

While updating, also simplify stack.format to only require an
io.Writer.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-04 12:04:11 +02:00
..
builder chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
checkpoint cli/command: don't use pflags.XXXVarP for flags without shorthand 2024-01-29 11:16:38 +01:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
config cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
container migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
context context list: temporarily add ContextType to JSON output 2024-05-31 13:08:31 +02:00
formatter Correct typos in the cli/ folder 2024-06-04 03:08:56 +00:00
idresolver add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
image chore: fix function names in comment 2024-04-19 12:24:42 +08:00
inspect add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
manifest Plumb contexts through commands 2023-12-12 22:30:16 +01:00
network vendor: github.com/docker/docker cd3804655a25 (master / v27.0.0-dev) 2024-06-04 09:17:20 +02:00
node add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
plugin Plumb context to API callbacks 2024-05-17 14:39:49 +02:00
registry cli/command: don't use pflags.XXXVarP for flags without shorthand 2024-01-29 11:16:38 +01:00
secret cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
service cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
stack cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
swarm cli/command: don't use pflags.XXXVarP for flags without shorthand 2024-01-29 11:16:38 +01:00
system vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
task linting: address slice-append issues found by gocritic 2023-11-20 16:02:17 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
volume chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
cli.go Use funcs on DockerCli to return Meter/TracerProviders, not initialize them. Initialize them during DockerCli struct init 2024-05-14 15:23:49 +00:00
cli_options.go cli/command: remove deprecated DockerCliOption, InitializeOpt 2024-01-20 21:39:32 +01:00
cli_options_test.go golangci-lint: enable thelper linter 2023-11-20 16:02:17 +01:00
cli_test.go cli-plugins: Introduce support for hooks 2024-03-22 17:30:18 +00:00
context.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
context_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
events_utils.go cli/command: deprecate EventHandler and InitEventHandler 2024-03-11 13:25:22 +01:00
registry.go Plumb context to API callbacks 2024-05-17 14:39:49 +02:00
registry_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
telemetry.go OTel: implement missing MeterProvider `ForceFlush` 2024-05-15 00:05:31 +01:00
telemetry_docker.go Fix OTLP env var overriding 2024-04-17 14:32:41 +00:00
telemetry_utils.go OTel: add `command.time` metric to plugin commands 2024-05-15 00:05:30 +01:00
telemetry_utils_test.go otel: capture exit code as int64 2024-04-04 19:11:56 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
utils_test.go refactor: prompt tests 2024-03-26 10:07:01 +01:00