-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathcluster_delete.go
More file actions
26 lines (21 loc) · 721 Bytes
/
cluster_delete.go
File metadata and controls
26 lines (21 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cmd
import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/k3d"
"github.com/spf13/cobra"
)
var cluster_deleteCmd = &cobra.Command{
Use: "delete [NAME [NAME ...] | --all]",
Short: "Delete cluster(s).",
Aliases: []string{"del", "rm"},
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(cluster_deleteCmd).Standalone()
cluster_deleteCmd.Flags().BoolP("all", "a", false, "Delete all existing clusters")
cluster_deleteCmd.Flags().StringP("config", "c", "", "Path of a config file to use")
clusterCmd.AddCommand(cluster_deleteCmd)
carapace.Gen(cluster_deleteCmd).PositionalAnyCompletion(
k3d.ActionClusters().FilterArgs(),
)
}