1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Remove command overrides for output options.

The overrides are not needed since both commands require the same default and allow list.
This commit is contained in:
David Steele 2021-10-12 16:16:05 -04:00
parent e8e346bc87
commit bd91ebca75
2 changed files with 11 additions and 33 deletions

View File

@ -293,17 +293,13 @@ option:
output: output:
type: string type: string
default: text
command: command:
info: info: {}
default: text repo-ls: {}
allow-list: allow-list:
- text - text
- json - json
repo-ls:
default: text
allow-list:
- text
- json
command-role: command-role:
main: {} main: {}

View File

@ -2289,31 +2289,13 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
PARSE_RULE_OPTION_OPTIONAL_LIST PARSE_RULE_OPTION_OPTIONAL_LIST
( (
PARSE_RULE_OPTION_OPTIONAL_COMMAND_OVERRIDE PARSE_RULE_OPTION_OPTIONAL_ALLOW_LIST
( (
PARSE_RULE_OPTION_OPTIONAL_COMMAND(cfgCmdInfo), "text",
"json"
),
PARSE_RULE_OPTION_OPTIONAL_ALLOW_LIST PARSE_RULE_OPTION_OPTIONAL_DEFAULT("text"),
(
"text",
"json"
),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("text"),
)
PARSE_RULE_OPTION_OPTIONAL_COMMAND_OVERRIDE
(
PARSE_RULE_OPTION_OPTIONAL_COMMAND(cfgCmdRepoLs),
PARSE_RULE_OPTION_OPTIONAL_ALLOW_LIST
(
"text",
"json"
),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("text"),
)
), ),
), ),