Building set commands for nodes and groups and templating out CLI further
This commit is contained in:
27
internal/app/wwctl/group/root.go
Normal file
27
internal/app/wwctl/group/root.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package group
|
||||
|
||||
import (
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/group/add"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/group/list"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/group/set"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "group",
|
||||
Short: "Group management",
|
||||
Long: "Management of group settings and power management",
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.AddCommand(list.GetCommand())
|
||||
baseCmd.AddCommand(set.GetCommand())
|
||||
baseCmd.AddCommand(add.GetCommand())
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
func GetCommand() *cobra.Command {
|
||||
return baseCmd
|
||||
}
|
||||
Reference in New Issue
Block a user