feat(cmd): improves error messaging for globs
This commit is contained in:
parent
20294a9279
commit
3d4cd40a17
8 changed files with 20 additions and 14 deletions
2
testdata/dump__glob__ok.ct
vendored
2
testdata/dump__glob__ok.ct
vendored
|
|
@ -5,4 +5,4 @@ $ 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
|
||||
Error: cannot dump '@default': No matches for pattern 'c*'
|
||||
|
|
|
|||
2
testdata/list__glob__ok.ct
vendored
2
testdata/list__glob__ok.ct
vendored
|
|
@ -7,4 +7,4 @@ a2 2
|
|||
$ pda ls lg --glob b* --format tsv
|
||||
b1 3
|
||||
$ pda ls lg --glob c* --> FAIL
|
||||
Error: cannot ls '@lg': No matches for pattern
|
||||
Error: cannot ls '@lg': No matches for pattern 'c*'
|
||||
|
|
|
|||
2
testdata/restore__glob__ok.ct
vendored
2
testdata/restore__glob__ok.ct
vendored
|
|
@ -12,4 +12,4 @@ $ pda get a2
|
|||
$ pda get b1 --> FAIL
|
||||
Error: cannot get 'b1': Key not found
|
||||
$ pda restore --glob c* --file dumpfile --> FAIL
|
||||
Error: cannot restore '@default': No matches for pattern
|
||||
Error: cannot restore '@default': No matches for pattern 'c*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue