rebased for the use without NodeInfo
make fanout configureable via commanline Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user