|
@@ -42,12 +42,12 @@ def prepare_config_commands(tool):
|
|
|
cmd = CommandInfo(name = "show", desc = "Show configuration.")
|
|
|
param = ParamInfo(name = "argument", type = "string", optional=True, desc = "If you specify the argument 'all' (before the identifier), recursively show all child elements for the given identifier.")
|
|
|
cmd.add_param(param)
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|
|
|
cmd = CommandInfo(name = "show_json", desc = "Show full configuration in JSON format.")
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|
|
@@ -60,7 +60,7 @@ def prepare_config_commands(tool):
|
|
|
"parameter value, similar to when adding to a list. "
|
|
|
"In either case, when no value is given, an entry will be "
|
|
|
"constructed with default values.")
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
param = ParamInfo(name = "value_or_name", type = "string", optional=True, desc = "Specifies a value to add to the list, or the name when adding to a named set. It must be in correct JSON format and complete.")
|
|
|
cmd.add_param(param)
|
|
@@ -70,21 +70,21 @@ def prepare_config_commands(tool):
|
|
|
module.add_command(cmd)
|
|
|
|
|
|
cmd = CommandInfo(name = "remove", desc = "Remove entry from configuration list or named set.")
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
param = ParamInfo(name = "value", type = "string", optional=True, desc = "When identifier is a list, specifies a value to remove from the list. It must be in correct JSON format and complete. When it is a named set, specifies the name to remove.")
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|
|
|
cmd = CommandInfo(name = "set", desc = "Set a configuration value.")
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=True, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
param = ParamInfo(name = "value", type = "string", optional=False, desc = "Specifies a value to set. It must be in correct JSON format and complete.")
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|
|
|
cmd = CommandInfo(name = "unset", desc = "Unset a configuration value (i.e. revert to the default, if any).")
|
|
|
- param = ParamInfo(name = "identifier", type = "string", optional=False, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type = "string", optional=False, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|
|
@@ -98,7 +98,7 @@ def prepare_config_commands(tool):
|
|
|
module.add_command(cmd)
|
|
|
|
|
|
cmd = CommandInfo(name = "go", desc = "Go to a specific configuration part.")
|
|
|
- param = ParamInfo(name = "identifier", type="string", optional=False, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
+ param = ParamInfo(name = IDENTIFIER_PARAM, type="string", optional=False, desc = DEFAULT_IDENTIFIER_DESC)
|
|
|
cmd.add_param(param)
|
|
|
module.add_command(cmd)
|
|
|
|