feat: adds --readonly and --pin flags, and displays Size column in list by default
This commit is contained in:
parent
e5b6dcd187
commit
5bcd3581dd
46 changed files with 711 additions and 177 deletions
24
testdata/meta-pin.ct
vendored
Normal file
24
testdata/meta-pin.ct
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# --pin marks a key as pinned
|
||||
$ pda set a@mp hello
|
||||
$ pda meta a@mp --pin
|
||||
ok pinned a@mp
|
||||
$ pda meta a@mp
|
||||
key: a@mp
|
||||
secret: false
|
||||
writable: true
|
||||
pinned: true
|
||||
expires: never
|
||||
|
||||
# --unpin clears the pinned flag
|
||||
$ pda meta a@mp --unpin
|
||||
ok unpinned a@mp
|
||||
$ pda meta a@mp
|
||||
key: a@mp
|
||||
secret: false
|
||||
writable: true
|
||||
pinned: false
|
||||
expires: never
|
||||
|
||||
# --pin and --unpin are mutually exclusive
|
||||
$ pda meta a@mp --pin --unpin --> FAIL
|
||||
FAIL cannot meta 'a@mp': --pin and --unpin are mutually exclusive
|
||||
Loading…
Add table
Add a link
Reference in a new issue