cli/command/stack: remove deprecated RunDeploy, RunPS, RunRemove, GetServices

These were deprecated in f08252c10a, which
is part of the v24.0 release, so we can remove these on master.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2023-05-09 22:32:21 +02:00
parent bc3f905a2a
commit d3ac801275
4 changed files with 0 additions and 33 deletions

View File

@ -15,7 +15,6 @@ import (
swarmtypes "github.com/docker/docker/api/types/swarm"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
func newServicesCommand(dockerCli command.Cli) *cobra.Command {
@ -52,13 +51,6 @@ func RunServices(dockerCli command.Cli, opts options.Services) error {
return formatWrite(dockerCli, services, opts)
}
// GetServices returns the services for the specified swarm cluster.
//
// Deprecated: use [swarm.GetServices] instead.
func GetServices(dockerCli command.Cli, _ *pflag.FlagSet, opts options.Services) ([]swarmtypes.Service, error) {
return swarm.GetServices(dockerCli, opts)
}
func formatWrite(dockerCli command.Cli, services []swarmtypes.Service, opts options.Services) error {
// if no services in the stack, print message and exit 0
if len(services) == 0 {