DockerCLI/cli/command/config
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
..
testdata formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
client_test.go cli/command/config: fakeClient: include context in fake client (revive) 2023-03-30 17:05:32 +02:00
cmd.go cli/command: use shallower interface for completions 2024-06-04 12:04:11 +02:00
create.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
create_test.go cli/command/config: fakeClient: include context in fake client (revive) 2023-03-30 17:05:32 +02:00
formatter.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
formatter_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
inspect.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
inspect_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
ls.go cli/command: don't use pflags.XXXVarP for flags without shorthand 2024-01-29 11:16:38 +01:00
ls_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
remove.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
remove_test.go cli/command/config: remove deprecated io/ioutil 2022-02-25 15:36:08 +01:00