Params-->Keys
This commit is contained in:
@@ -35,9 +35,9 @@ var (
|
||||
SetNetDevDefault bool
|
||||
SetInit string
|
||||
SetRoot string
|
||||
SetParam string
|
||||
SetKey string
|
||||
SetValue string
|
||||
SetParamDel bool
|
||||
SetKeyDel bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -66,9 +66,10 @@ func init() {
|
||||
baseCmd.PersistentFlags().BoolVar(&SetNetDevDel, "netdel", false, "Delete the node's network device")
|
||||
baseCmd.PersistentFlags().BoolVar(&SetNetDevDefault, "netdefault", false, "Set this network to be default")
|
||||
|
||||
baseCmd.PersistentFlags().StringVarP(&SetParam, "param", "p", "", "Define custom parameter")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetValue, "value", "", "", "Set custom parameter value")
|
||||
baseCmd.PersistentFlags().BoolVar(&SetParamDel, "paramdel", false, "Delete custom parameter")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetKey, "key", "k", "", "Define custom key")
|
||||
baseCmd.PersistentFlags().BoolVar(&SetKeyDel, "keydel", false, "Delete custom key")
|
||||
|
||||
baseCmd.PersistentFlags().StringVarP(&SetValue, "value", "", "", "Set value")
|
||||
|
||||
baseCmd.PersistentFlags().BoolVarP(&SetAll, "all", "a", false, "Set all profiles")
|
||||
baseCmd.PersistentFlags().BoolVarP(&SetForce, "force", "f", false, "Force configuration (even on error)")
|
||||
|
||||
Reference in New Issue
Block a user