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

11
testdata/meta-ttl.ct vendored Normal file
View file

@ -0,0 +1,11 @@
# Set TTL on a key, then view it (just verify no error, can't match dynamic time)
$ pda set hello@mt world
$ pda meta hello@mt --ttl 1h
# Clear TTL with --ttl never
$ pda set --ttl 1h expiring@mt val
$ pda meta expiring@mt --ttl never
$ pda meta expiring@mt
key: expiring@mt
secret: false
expires: never