Files
warewulf/internal/app/wwctl/group/delete/root.go
2020-11-21 01:55:43 -08:00

26 lines
639 B
Go

package delete
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "del",
Short: "Add a new node group",
Long: "Add a new node group ",
RunE: CobraRunE,
}
SetVnfs string
SetKernel string
// SetGroupLevel bool
)
func init() {
baseCmd.PersistentFlags().StringVarP(&SetVnfs, "vnfs", "V", "", "Set node Virtual Node File System (VNFS)")
baseCmd.PersistentFlags().StringVarP(&SetKernel, "kernel", "K", "", "Set Kernel version for nodes")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}