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
11
testdata/list__key__value__ok.ct
vendored
Normal file
11
testdata/list__key__value__ok.ct
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$ pda set dburl@kv postgres://localhost:5432
|
||||
$ pda set apiurl@kv https://api.example.com
|
||||
$ pda set dbpass@kv s3cret
|
||||
$ pda ls kv -k "db*" -v "**localhost**" --format tsv
|
||||
Key Value TTL
|
||||
dburl postgres://localhost:5432 no expiry
|
||||
$ pda ls kv -k "*url*" -v "**example**" --format tsv
|
||||
Key Value TTL
|
||||
apiurl https://api.example.com no expiry
|
||||
$ pda ls kv -k "db*" -v "**nomatch**" --> FAIL
|
||||
FAIL cannot ls '@kv': no matches for key pattern 'db*' and value pattern '**nomatch**'
|
||||
Loading…
Add table
Add a link
Reference in a new issue