feat(lss): adds --no-header and --short flags, and lowercases all flag descriptions

This commit is contained in:
Lewis Wynne 2026-02-11 19:29:14 +00:00
parent 4e5064d07a
commit 15c1d6733c
22 changed files with 161 additions and 84 deletions

View file

@ -7,8 +7,8 @@ Usage:
Flags:
-h, --help help for export
-k, --key strings Filter keys with glob pattern (repeatable)
-v, --value strings Filter values with regex pattern (repeatable)
-k, --key strings filter keys with glob pattern (repeatable)
-v, --value strings filter values with glob pattern (repeatable)
Export store as NDJSON (alias for list --format ndjson)
Usage:
@ -16,5 +16,5 @@ Usage:
Flags:
-h, --help help for export
-k, --key strings Filter keys with glob pattern (repeatable)
-v, --value strings Filter values with regex pattern (repeatable)
-k, --key strings filter keys with glob pattern (repeatable)
-v, --value strings filter values with glob pattern (repeatable)

View file

@ -6,19 +6,19 @@ Usage:
pda import [STORE] [flags]
Flags:
--drop Drop existing entries before restoring (full replace)
-f, --file string Path to an NDJSON dump (defaults to stdin)
--drop drop existing entries before restoring (full replace)
-f, --file string path to an NDJSON dump (defaults to stdin)
-h, --help help for import
-i, --interactive Prompt before overwriting existing keys
-k, --key strings Restore keys matching glob pattern (repeatable)
-i, --interactive prompt before overwriting existing keys
-k, --key strings restore keys matching glob pattern (repeatable)
Restore key/value pairs from an NDJSON dump
Usage:
pda import [STORE] [flags]
Flags:
--drop Drop existing entries before restoring (full replace)
-f, --file string Path to an NDJSON dump (defaults to stdin)
--drop drop existing entries before restoring (full replace)
-f, --file string path to an NDJSON dump (defaults to stdin)
-h, --help help for import
-i, --interactive Prompt before overwriting existing keys
-k, --key strings Restore keys matching glob pattern (repeatable)
-i, --interactive prompt before overwriting existing keys
-k, --key strings restore keys matching glob pattern (repeatable)

View file

@ -9,7 +9,9 @@ Aliases:
list-stores, lss
Flags:
-h, --help help for list-stores
-h, --help help for list-stores
--no-header suppress the header row
--short only print store names
List all stores
Usage:
@ -19,4 +21,6 @@ Aliases:
list-stores, lss
Flags:
-h, --help help for list-stores
-h, --help help for list-stores
--no-header suppress the header row
--short only print store names

View file

@ -14,12 +14,12 @@ Flags:
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-f, --full show full values without truncation
-h, --help help for list
-k, --key strings Filter keys with glob pattern (repeatable)
-k, --key strings filter keys with glob pattern (repeatable)
--no-header suppress the header row
--no-keys suppress the key column
--no-ttl suppress the TTL column
--no-values suppress the value column
-v, --value strings Filter values with regex pattern (repeatable)
-v, --value strings filter values with glob pattern (repeatable)
List the contents of a store
Usage:
@ -34,9 +34,9 @@ Flags:
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-f, --full show full values without truncation
-h, --help help for list
-k, --key strings Filter keys with glob pattern (repeatable)
-k, --key strings filter keys with glob pattern (repeatable)
--no-header suppress the header row
--no-keys suppress the key column
--no-ttl suppress the TTL column
--no-values suppress the value column
-v, --value strings Filter values with regex pattern (repeatable)
-v, --value strings filter values with glob pattern (repeatable)

View file

@ -10,8 +10,8 @@ Aliases:
Flags:
-h, --help help for remove-store
-i, --interactive Prompt yes/no for each deletion
-y, --yes Skip all confirmation prompts
-i, --interactive prompt yes/no for each deletion
-y, --yes skip all confirmation prompts
Delete a store
Usage:
@ -22,5 +22,5 @@ Aliases:
Flags:
-h, --help help for remove-store
-i, --interactive Prompt yes/no for each deletion
-y, --yes Skip all confirmation prompts
-i, --interactive prompt yes/no for each deletion
-y, --yes skip all confirmation prompts

View file

@ -10,9 +10,9 @@ Aliases:
Flags:
-h, --help help for remove
-i, --interactive Prompt yes/no for each deletion
-k, --key strings Delete keys matching glob pattern (repeatable)
-y, --yes Skip all confirmation prompts
-i, --interactive prompt yes/no for each deletion
-k, --key strings delete keys matching glob pattern (repeatable)
-y, --yes skip all confirmation prompts
Delete one or more keys
Usage:
@ -23,6 +23,6 @@ Aliases:
Flags:
-h, --help help for remove
-i, --interactive Prompt yes/no for each deletion
-k, --key strings Delete keys matching glob pattern (repeatable)
-y, --yes Skip all confirmation prompts
-i, --interactive prompt yes/no for each deletion
-k, --key strings delete keys matching glob pattern (repeatable)
-y, --yes skip all confirmation prompts

20
testdata/help-set.ct vendored
View file

@ -21,12 +21,12 @@ Aliases:
set, s
Flags:
-e, --encrypt Encrypt the value at rest using age
-f, --file string Read value from a file
-e, --encrypt encrypt the value at rest using age
-f, --file string read value from a file
-h, --help help for set
-i, --interactive Prompt before overwriting an existing key
--safe Do not overwrite if the key already exists
-t, --ttl duration Expire the key after the provided duration (e.g. 24h, 30m)
-i, --interactive prompt before overwriting an existing key
--safe do not overwrite if the key already exists
-t, --ttl duration expire the key after the provided duration (e.g. 24h, 30m)
Set a key to a given value or stdin. Optionally specify a store.
Pass --encrypt to encrypt the value at rest using age. An identity file
@ -48,9 +48,9 @@ Aliases:
set, s
Flags:
-e, --encrypt Encrypt the value at rest using age
-f, --file string Read value from a file
-e, --encrypt encrypt the value at rest using age
-f, --file string read value from a file
-h, --help help for set
-i, --interactive Prompt before overwriting an existing key
--safe Do not overwrite if the key already exists
-t, --ttl duration Expire the key after the provided duration (e.g. 24h, 30m)
-i, --interactive prompt before overwriting an existing key
--safe do not overwrite if the key already exists
-t, --ttl duration expire the key after the provided duration (e.g. 24h, 30m)