Warewulf is now being maintained in its own GitHub organization at github.com/warewulf Signed-off-by: Jonathon Anderson <janderson@ciq.com>
29 lines
776 B
Go
29 lines
776 B
Go
package kernel
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/kernel/delete"
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/kernel/imprt"
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/kernel/list"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
DisableFlagsInUseLine: true,
|
|
Use: "kernel COMMAND [OPTIONS]",
|
|
Short: "Kernel Image Management",
|
|
Long: "This command manages Warewulf Kernels used for 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
|
|
}
|