feat: splits --glob into --key and --value searches

This commit is contained in:
Lewis Wynne 2026-02-11 15:21:05 +00:00
parent 1f4732823d
commit 5145816b0a
22 changed files with 275 additions and 188 deletions

View file

@ -1,16 +1,19 @@
$ pda set foo 1
$ pda set bar 2
$ pda ls
Key Value TTL
a echo hello (..1 more chars) no expiry
a1 1 no expiry
a2 2 no expiry
b1 3 no expiry
bar 2 no expiry
copied-key hidden-value no expiry
foo 1 no expiry
moved-key hidden-value no expiry
$ pda rm foo --glob "*"
Key Value TTL
a echo hello (..1 more chars) no expiry
a1 1 no expiry
a2 2 no expiry
b1 3 no expiry
bar 2 no expiry
copied-key hidden-value no expiry
foo 1 no expiry
greeting hello world (..1 more chars) no expiry
moved-key hidden-value no expiry
number 42 no expiry
url https://example.com no expiry
$ pda rm foo --key "*"
$ pda get bar --> FAIL
FAIL cannot get 'bar': no such key
$ pda get foo --> FAIL