Files
warewulf/internal/app/wwctl/node/delete/root.go
2020-11-22 20:35:13 -08:00

26 lines
612 B
Go

package delete
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "delete",
Short: "Set node configurations",
Long: "Set node configurations ",
RunE: CobraRunE,
}
SetForce string
SetGroup string
)
func init() {
baseCmd.PersistentFlags().StringVarP(&SetForce, "force", "f", "", "Force node delete")
baseCmd.PersistentFlags().StringVarP(&SetGroup, "group", "g", "default", "Set group to delete nodes from")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}