rebased for the use without NodeInfo

make fanout configureable via commanline

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Jonathon Anderson
2024-11-07 17:45:02 -07:00
parent 0490f4c9a5
commit 2e2a7d7de3
22 changed files with 304 additions and 250 deletions

View File

@@ -7,6 +7,7 @@ import (
type variables struct {
Showcmd bool
Fanout int
}
// GetRootCommand returns the root cobra.Command for the application.
@@ -33,5 +34,6 @@ func GetCommand() *cobra.Command {
},
}
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")
return powerCmd
}