32 lines
925 B
XML
32 lines
925 B
XML
# Set a bool value and verify with get
|
|
$ pda config set git.auto_commit true
|
|
$ pda config get git.auto_commit
|
|
true
|
|
|
|
# Set a string value
|
|
$ pda config set store.default_store_name mystore
|
|
$ pda config get store.default_store_name
|
|
mystore
|
|
|
|
# Set back to original
|
|
$ pda config set git.auto_commit false
|
|
$ pda config get git.auto_commit
|
|
false
|
|
|
|
# Bad type
|
|
$ pda config set git.auto_commit yes --> FAIL
|
|
FAIL cannot set 'git.auto_commit': expected bool (true/false), got 'yes'
|
|
|
|
# Invalid list format
|
|
$ pda config set list.default_list_format yaml --> FAIL
|
|
FAIL cannot set 'list.default_list_format': must be one of 'table', 'tsv', 'csv', 'html', 'markdown', 'ndjson', or 'json'
|
|
|
|
# Valid list format
|
|
$ pda config set list.default_list_format json
|
|
$ pda config get list.default_list_format
|
|
json
|
|
|
|
# Unknown key
|
|
$ pda config set git.auto_comit true --> FAIL
|
|
FAIL unknown config key 'git.auto_comit'
|
|
hint did you mean 'git.auto_commit'?
|