UI Updates with a few minor fixups scattered here and there
This commit is contained in:
32
internal/app/wwctl/power/root.go
Normal file
32
internal/app/wwctl/power/root.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package power
|
||||
|
||||
import (
|
||||
powercycle "github.com/hpcng/warewulf/internal/app/wwctl/power/cycle"
|
||||
poweroff "github.com/hpcng/warewulf/internal/app/wwctl/power/off"
|
||||
poweron "github.com/hpcng/warewulf/internal/app/wwctl/power/on"
|
||||
powerstatus "github.com/hpcng/warewulf/internal/app/wwctl/power/status"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "power",
|
||||
Short: "Warewulf node power management",
|
||||
Long: "This command can control the power state of nodes.",
|
||||
}
|
||||
test bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
// baseCmd.PersistentFlags().BoolVarP(&test, "test", "t", false, "Testing.")
|
||||
|
||||
baseCmd.AddCommand(powercycle.GetCommand())
|
||||
baseCmd.AddCommand(poweroff.GetCommand())
|
||||
baseCmd.AddCommand(poweron.GetCommand())
|
||||
baseCmd.AddCommand(powerstatus.GetCommand())
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
func GetCommand() *cobra.Command {
|
||||
return baseCmd
|
||||
}
|
||||
Reference in New Issue
Block a user