feat(list): adds --count flag for returning a count of matches
This commit is contained in:
parent
e04bcfb306
commit
ad98a1e6c4
4 changed files with 24 additions and 0 deletions
9
testdata/list-count.ct
vendored
Normal file
9
testdata/list-count.ct
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$ pda set a@lc val-a
|
||||
$ pda set b@lc val-b
|
||||
$ pda set c@lc val-c
|
||||
$ pda ls lc --count
|
||||
3
|
||||
$ pda ls lc --count --key "a*"
|
||||
1
|
||||
$ pda ls lc --count --key "z*"
|
||||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue