30 lines
906 B
XML
30 lines
906 B
XML
# Init creates a config file
|
|
$ pda config init
|
|
ok generated config: ${ROOTDIR}/config/config.toml
|
|
|
|
# Second init fails
|
|
$ pda config init --> FAIL
|
|
FAIL config file already exists
|
|
hint use '--update' to update your config, or '--new' to get a fresh copy
|
|
|
|
# Init --new overwrites
|
|
$ pda config init --new
|
|
ok generated config: ${ROOTDIR}/config/config.toml
|
|
|
|
# --update preserves user changes
|
|
$ pda config set list.always_show_all_stores false
|
|
$ pda config get list.always_show_all_stores
|
|
ok list.always_show_all_stores set to 'false'
|
|
false
|
|
$ pda config init --update
|
|
$ pda config get list.always_show_all_stores
|
|
ok updated config: ${ROOTDIR}/config/config.toml
|
|
false
|
|
|
|
# --new and --update are mutually exclusive
|
|
$ pda config init --new --update --> FAIL
|
|
FAIL --new and --update are mutually exclusive
|
|
|
|
# Reset for other tests
|
|
$ pda config init --new
|
|
ok generated config: ${ROOTDIR}/config/config.toml
|