mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
602 B
Go
24 lines
602 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var node_rmCmd = &cobra.Command{
|
|
Use: "rm [OPTIONS] NODE [NODE...]",
|
|
Short: "Remove one or more nodes from the swarm",
|
|
Aliases: []string{"remove"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(node_rmCmd).Standalone()
|
|
|
|
node_rmCmd.Flags().BoolP("force", "f", false, "Force remove a node from the swarm")
|
|
nodeCmd.AddCommand(node_rmCmd)
|
|
|
|
carapace.Gen(node_rmCmd).PositionalAnyCompletion(docker.ActionNodes())
|
|
}
|