2023-04-13 11:43:03 +02:00

22 lines
502 B
Go

package cmd
import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
"github.com/spf13/cobra"
)
var node_demoteCmd = &cobra.Command{
Use: "demote NODE [NODE...]",
Short: "Demote one or more nodes from manager in the swarm",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(node_demoteCmd).Standalone()
nodeCmd.AddCommand(node_demoteCmd)
carapace.Gen(node_demoteCmd).PositionalAnyCompletion(docker.ActionNodes())
}