- Remove kernel imports and kmods images - Repurpose KernelOverride as container path - Support Kernel.Version as version prefix for kernel selection - Compare initramfs by version Signed-off-by: Jonathon Anderson <janderson@ciq.com>
24 lines
579 B
Go
24 lines
579 B
Go
package list
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
DisableFlagsInUseLine: true,
|
|
Use: "list [OPTIONS]",
|
|
Short: "List available kernels",
|
|
Long: "This command lists the kernels that are available in the imported containers.",
|
|
RunE: CobraRunE,
|
|
Args: cobra.ExactArgs(0),
|
|
Aliases: []string{"ls"},
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
}
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|