25 lines
655 B
Go
25 lines
655 B
Go
package kernels
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/completions"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
DisableFlagsInUseLine: true,
|
|
Use: "kernels [OPTIONS]",
|
|
Short: "List available container kernels",
|
|
Long: "This command lists the kernels that are available in the imported containers.",
|
|
RunE: CobraRunE,
|
|
Aliases: []string{"kernel"},
|
|
ValidArgsFunction: completions.Containers,
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|