feat(globs): glob support for dump/restore, extracts some shared logic
This commit is contained in:
parent
9869b663e2
commit
7890e9451d
9 changed files with 141 additions and 57 deletions
8
testdata/dump__glob__ok.ct
vendored
Normal file
8
testdata/dump__glob__ok.ct
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
$ pda set a1 1
|
||||
$ pda set a2 2
|
||||
$ pda set b1 3
|
||||
$ pda dump --glob a*
|
||||
{"key":"a1","value":"1","encoding":"text"}
|
||||
{"key":"a2","value":"2","encoding":"text"}
|
||||
$ pda dump --glob c* --> FAIL
|
||||
Error: cannot dump '@default': No matches for pattern
|
||||
Loading…
Add table
Add a link
Reference in a new issue