DockerCLI/cli/command/stack
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
..
formatter linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
loader add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
options Add support for --detach/-d flag in stack rm 2024-03-04 09:56:53 +01:00
swarm cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
testdata remove obsolete mutli-orchestrator support 2022-02-22 15:28:12 +01:00
client_test.go vendor: github.com/docker/docker cd3804655a25 (master / v27.0.0-dev) 2024-06-04 09:17:20 +02:00
cmd.go cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
common.go Drop support for (archived) Compose-on-Kubernetes 2022-02-22 13:47:34 +01:00
config.go golangci-lint: revive: enable import-shadowing 2023-11-20 19:52:41 +01:00
config_test.go cli/command/stack: TestConfigMergeInterpolation: various fixes 2022-11-17 13:17:51 +01:00
deploy.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
deploy_test.go cli/command/stack: remove deprecated io/ioutil 2022-02-25 15:42:10 +01:00
list.go cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
list_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
ps.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
ps_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
remove.go Add support for --detach/-d flag in stack rm 2024-03-04 09:56:53 +01:00
remove_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
services.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
services_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00