Files
warewulf/internal/app/wwctl/kernel/root.go
2021-04-07 15:23:37 -07:00

29 lines
697 B
Go

package kernel
import (
"github.com/hpcng/warewulf/internal/app/wwctl/kernel/delete"
"github.com/hpcng/warewulf/internal/app/wwctl/kernel/imprt"
"github.com/hpcng/warewulf/internal/app/wwctl/kernel/list"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "kernel",
Short: "Kernel Image Management",
Long: "This command is for management of Warewulf Kernels to be used for\n" +
"bootstrapping nodes",
}
)
func init() {
baseCmd.AddCommand(imprt.GetCommand())
baseCmd.AddCommand(list.GetCommand())
baseCmd.AddCommand(delete.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}