feat(meta): add meta command for viewing/modifying key metadata

This commit is contained in:
Lewis Wynne 2026-02-13 15:15:26 +00:00
parent a382e8dc79
commit 618842b285
7 changed files with 189 additions and 0 deletions

13
testdata/meta.ct vendored Normal file
View file

@ -0,0 +1,13 @@
# View metadata for a plaintext key
$ pda set hello@m world
$ pda meta hello@m
key: hello@m
secret: false
expires: never
# View metadata for an encrypted key
$ pda set --encrypt secret@m hunter2
$ pda meta secret@m
key: secret@m
secret: true
expires: never