mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
22 lines
502 B
Go
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())
|
|
}
|