DockerCLI/cli/command/stack
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
..
formatter linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
loader stack: Change unexpected environment variable error 2023-03-09 22:13:20 +01:00
options Add stack config command 2022-04-08 14:56:01 +02:00
swarm format code with gofumpt 2022-09-30 11:59:11 +02:00
testdata remove obsolete mutli-orchestrator support 2022-02-22 15:28:12 +01:00
client_test.go Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
cmd.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
common.go Drop support for (archived) Compose-on-Kubernetes 2022-02-22 13:47:34 +01:00
config.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
config_test.go cli/command/stack: TestConfigMergeInterpolation: various fixes 2022-11-17 13:17:51 +01:00
deploy.go cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
deploy_test.go cli/command/stack: remove deprecated io/ioutil 2022-02-25 15:42:10 +01:00
list.go cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
list_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
ps.go cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
ps_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
remove.go cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
remove_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
services.go cli/command/stack: deprecate now obsolete wrappers 2023-07-15 15:20:30 +02:00
services_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00