DockerCLI/cli/command/service
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
..
progress Correct typos in the cli/ folder 2024-06-04 03:08:56 +00:00
testdata Add support for --limit-pids on service create / update (swarm) 2020-06-18 21:25:02 +02:00
client_test.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
cmd.go cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
create.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
create_test.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
formatter.go golangci-lint: revive: enable import-shadowing 2023-11-20 19:52:41 +01:00
formatter_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
generic_resource_opts.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
generic_resource_opts_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
helpers.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
inspect.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
inspect_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
list.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
list_test.go linting: address assorted issues found by gocritic 2023-11-20 16:02:16 +01:00
logs.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
opts.go Correct typos in the cli/ folder 2024-06-04 03:08:56 +00:00
opts_test.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
parse.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
ps.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
ps_test.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
remove.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
rollback.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
rollback_test.go vendor: github.com/docker/docker cdb3f9fb8dca (v25.0.0-dev) 2023-10-13 22:09:04 +02:00
scale.go Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
trust.go migrate reference github.com/distribution/reference 2023-09-05 17:53:20 +02:00
update.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00
update_test.go vendor: github.com/docker/docker e622cea55698 (master / v27.0.0-dev) 2024-05-31 17:39:37 +02:00