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,14 +293,10 @@ option:
output:
type: string
default: text
command:
info:
default: text
allow-list:
- text
- json
repo-ls:
default: text
info: {}
repo-ls: {}
allow-list:
- text
- json

View File

@ -2289,10 +2289,6 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
PARSE_RULE_OPTION_OPTIONAL_LIST
(
PARSE_RULE_OPTION_OPTIONAL_COMMAND_OVERRIDE
(
PARSE_RULE_OPTION_OPTIONAL_COMMAND(cfgCmdInfo),
PARSE_RULE_OPTION_OPTIONAL_ALLOW_LIST
(
"text",
@ -2300,20 +2296,6 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
),
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"),
)
),
),