feat: splits --glob into --key and --value searches
This commit is contained in:
parent
1f4732823d
commit
5145816b0a
22 changed files with 275 additions and 188 deletions
16
testdata/restore__glob__ok.ct
vendored
16
testdata/restore__glob__ok.ct
vendored
|
|
@ -1,16 +0,0 @@
|
|||
$ pda set a1 1
|
||||
$ pda set a2 2
|
||||
$ pda set b1 3
|
||||
$ fecho dumpfile {"key":"a1","value":"1","encoding":"text"} {"key":"a2","value":"2","encoding":"text"} {"key":"b1","value":"3","encoding":"text"}
|
||||
$ pda rm a1 a2 b1
|
||||
$ pda restore --glob a* --file dumpfile
|
||||
ok restored 2 entries into @default
|
||||
$ pda get a1
|
||||
1
|
||||
$ pda get a2
|
||||
2
|
||||
$ pda get b1 --> FAIL
|
||||
FAIL cannot get 'b1': no such key
|
||||
hint did you mean 'a1'?
|
||||
$ pda restore --glob c* --file dumpfile --> FAIL
|
||||
FAIL cannot restore '@default': no matches for pattern 'c*'
|
||||
Loading…
Add table
Add a link
Reference in a new issue