DockerCLI/cli/command
Sebastiaan van Stijn de94fd5ecf
cli/command/stack: deprecate now obsolete wrappers
These wrappers were added to abstract stack deploy to k8s and swarm. Now
that support for deploying to k8s was removed, we can remove these wrappers.

This deprecates:

- RunDeploy()
- RunPs()
- RunRemove()
- GetServices()

This also addresses some linting failers, due to these functions having
unused arguments:

    cli/command/stack/deploy.go:51:39: unused-parameter: parameter 'flags' seems to be unused, consider removing or renaming it as _ (revive)
    func RunDeploy(dockerCli command.Cli, flags *pflag.FlagSet, config *composetypes.Config, opts options.Deploy) error {
                                              ^
    cli/command/stack/ps.go:42:35: unused-parameter: parameter 'flags' seems to be unused, consider removing or renaming it as _ (revive)
    func RunPs(dockerCli command.Cli, flags *pflag.FlagSet, opts options.PS) error {
                                      ^
    cli/command/stack/remove.go:35:39: unused-parameter: parameter 'flags' seems to be unused, consider removing or renaming it as _ (revive)
    func RunRemove(dockerCli command.Cli, flags *pflag.FlagSet, opts options.Remove) error {
                                          ^
    cli/command/stack/list.go:37:14: unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
    func RunList(cmd *cobra.Command, dockerCli command.Cli, opts options.List) error {
                 ^
    cli/command/stack/services.go:56:41: unused-parameter: parameter 'flags' seems to be unused, consider removing or renaming it as _ (revive)
    func GetServices(dockerCli command.Cli, flags *pflag.FlagSet, opts options.Services) ([]swarmtypes.Service, error) {
                                            ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f08252c10a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-15 15:20:30 +02:00
..
builder cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
checkpoint format code with gofumpt 2022-09-30 11:59:11 +02:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
config format code with gofumpt 2022-09-30 11:59:11 +02:00
container cli/command/container: fix redefinition of the built-in function close (revive) 2023-07-15 15:20:07 +02:00
context cli/command/context: remove redundant if ...; err != nil check (revive) 2023-07-15 15:20:17 +02:00
formatter cli/command/formatter: export JSONFormat const 2023-04-26 12:12:24 +02:00
idresolver format code with gofumpt 2022-09-30 11:59:11 +02:00
image test/cli: Use empty array as empty output of images/json 2023-03-01 15:59:31 +01:00
inspect linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
manifest manifest: save raw manifest content on download 2023-01-27 13:56:17 +00:00
network cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
node cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
plugin cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
registry format code with gofumpt 2022-09-30 11:59:11 +02:00
secret format code with gofumpt 2022-09-30 11:59:11 +02:00
service cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
stack cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
swarm cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
system fix docker version --format=json not outputting json format 2023-04-26 12:12:25 +02:00
task cli/command/task: taskContext.Error(): use ellipsis utility 2022-11-28 16:29:04 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
volume volumes: prune: add --all / -a option 2023-04-26 12:06:39 +02:00
cli.go Handle empty DOCKER_BUILDKIT like unset 2023-04-19 15:53:40 +02:00
cli_options.go cli/command: add WithAPIClient 2022-12-05 21:40:39 +01:00
cli_options_test.go linting: os.Setenv() can be replaced by `t.Setenv()` (tenv) 2022-09-03 21:25:37 +02:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go cli/command: move default context description to context itself 2022-11-22 12:57:54 +01:00
context_test.go cli/command: use more descriptive const in test 2022-11-22 12:57:57 +01:00
defaultcontextstore.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
defaultcontextstore_test.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go cli/command: fix documentation for ResolveAuthConfig 2023-04-12 12:39:06 +02:00
registry_test.go cli/command: fix imports formatting 2023-03-21 16:58:47 +01:00
streams.go cli/command: fix deprecation comments for Stream types 2023-04-01 20:38:27 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli/command: use strings.Cut 2022-12-29 15:19:31 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00