1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-29 08:21:11 +03:00

Move configuration definition to src/build/config/config.yaml.

Moving to YAML allows the configuration data to be read by C programs.

Also go back to using YAML::XS since it is the only implementation that has proper boolean support.
This commit is contained in:
David Steele
2021-03-08 16:01:05 -05:00
parent 1dbb3bf50b
commit fe4ba455ed
13 changed files with 2067 additions and 3288 deletions

View File

@ -325,11 +325,11 @@ sub process
$$oCommandOption{&CONFIG_HELP_NAME} = $oOptionDoc->paramGet('name');
# Generate a list of alternate names
if (defined($rhConfigDefine->{$strOption}{&CFGDEF_NAME_ALT}))
if (defined($rhConfigDefine->{$strOption}{&CFGDEF_DEPRECATE}))
{
my $rhNameAlt = {};
foreach my $strNameAlt (sort(keys(%{$rhConfigDefine->{$strOption}{&CFGDEF_NAME_ALT}})))
foreach my $strNameAlt (sort(keys(%{$rhConfigDefine->{$strOption}{&CFGDEF_DEPRECATE}})))
{
$strNameAlt =~ s/\?//g;