feat(cmd): improves error messaging for globs

This commit is contained in:
Lewis Wynne 2025-12-18 01:53:09 +00:00
parent 20294a9279
commit 3d4cd40a17
8 changed files with 20 additions and 14 deletions

View file

@ -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*'

View file

@ -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*'

View file

@ -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*'