Files
k3k/cli/cmds/cluster/cluster.go
2025-01-23 10:14:01 +01:00

30 lines
557 B
Go

package cluster
import (
"github.com/rancher/k3k/cli/cmds"
"github.com/urfave/cli/v2"
)
var subcommands = []*cli.Command{
{
Name: "create",
Usage: "Create new cluster",
Action: create,
Flags: append(cmds.CommonFlags, clusterCreateFlags...),
},
{
Name: "delete",
Usage: "Delete an existing cluster",
Action: delete,
Flags: append(cmds.CommonFlags, clusterDeleteFlags...),
},
}
func NewCommand() *cli.Command {
return &cli.Command{
Name: "cluster",
Usage: "cluster command",
Subcommands: subcommands,
}
}