Simplify node, profile, and image completions

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-09 16:38:27 -07:00
parent d95f9c8c46
commit 3b963ee5a6
27 changed files with 54 additions and 56 deletions

View File

@@ -20,7 +20,7 @@ func GetCommand() *cobra.Command {
Long: "This command will issue a reset to a set of nodes specified by PATTERN.",
RunE: CobraRunE(&vars),
Args: cobra.MinimumNArgs(1),
ValidArgsFunction: completions.Nodes(0), // no limit,
ValidArgsFunction: completions.Nodes,
}
powerCmd.PersistentFlags().BoolVarP(&vars.Showcmd, "show", "s", false, "only show command which will be executed")
powerCmd.PersistentFlags().IntVar(&vars.Fanout, "fanout", 50, "how many command should be executed in parallel")