Files
warewulf/internal/app/wwctl/power/cycle/root.go
2024-09-30 06:41:53 +00:00

21 lines
495 B
Go

package cycle
import (
"github.com/spf13/cobra"
)
var (
powerCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "cycle [OPTIONS] [PATTERN ...]",
Short: "Power cycle the given node(s)",
Long: "This command cycles power for a set of nodes specified by PATTERN.",
RunE: CobraRunE,
}
)
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return powerCmd
}