Simplify node, profile, and image completions
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -23,7 +23,7 @@ func GetCommand() *cobra.Command {
|
||||
Long: "This command will show you the images that are imported into Warewulf.",
|
||||
RunE: CobraRunE(&vars),
|
||||
Aliases: []string{"ls"},
|
||||
ValidArgsFunction: completions.Images(0), // no limit
|
||||
ValidArgsFunction: completions.Images,
|
||||
}
|
||||
baseCmd.PersistentFlags().BoolVarP(&vars.full, "long", "l", false, "show all")
|
||||
baseCmd.PersistentFlags().BoolVarP(&vars.kernel, "kernel", "k", false, "show kernel version")
|
||||
|
||||
Reference in New Issue
Block a user