DockerCLI/cli/command/stack/swarm
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
..
client_test.go vendor: github.com/docker/docker cd3804655a25 (master / v27.0.0-dev) 2024-06-04 09:17:20 +02:00
common.go vendor: github.com/docker/docker cd3804655a25 (master / v27.0.0-dev) 2024-06-04 09:17:20 +02:00
deploy.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
deploy_composefile.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
deploy_composefile_test.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
deploy_test.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
list.go cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
ps.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
remove.go Add support for --detach/-d flag in stack rm 2024-03-04 09:56:53 +01:00
services.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00