feat: include summary of omitted binary data

This commit is contained in:
Lewis Wynne 2026-02-11 13:17:23 +00:00
parent d63c1fd77b
commit 07330be10b
9 changed files with 57 additions and 30 deletions

View file

@ -1,7 +1,7 @@
$ pda get foobar --> FAIL
$ pda get foobar --include-binary --> FAIL
$ pda get foobar --include-binary --run --> FAIL
$ pda get foobar --include-binary --run --secret --> FAIL
$ pda get foobar --base64 --> FAIL
$ pda get foobar --base64 --run --> FAIL
$ pda get foobar --base64 --run --secret --> FAIL
$ pda get foobar --run --> FAIL
$ pda get foobar --run --secret --> FAIL
$ pda get foobar --secret --> FAIL

View file

@ -1,3 +1,3 @@
$ pda set a b
$ pda get a --include-binary
$ pda get a --base64
b

View file

@ -1,4 +1,4 @@
$ fecho cmd echo hello
$ pda set foo < cmd
$ pda get foo --include-binary --run
$ pda get foo --base64 --run
hello

View file

@ -16,10 +16,10 @@ Aliases:
get, g
Flags:
-h, --help help for get
-b, --include-binary include binary data in text output
--no-template directly output template syntax
-c, --run execute the result as a shell command
-b, --base64 view binary data as base64
-h, --help help for get
--no-template directly output template syntax
-c, --run execute the result as a shell command
Get the value of a key. Optionally specify a store.
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
@ -36,7 +36,7 @@ Aliases:
get, g
Flags:
-h, --help help for get
-b, --include-binary include binary data in text output
--no-template directly output template syntax
-c, --run execute the result as a shell command
-b, --base64 view binary data as base64
-h, --help help for get
--no-template directly output template syntax
-c, --run execute the result as a shell command

View file

@ -9,7 +9,7 @@ Aliases:
list, ls
Flags:
-b, --binary include binary data in text output
-b, --base64 view binary data as base64
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-g, --glob strings Filter keys with glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default '/-_.@: ')
@ -27,7 +27,7 @@ Aliases:
list, ls
Flags:
-b, --binary include binary data in text output
-b, --base64 view binary data as base64
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
-g, --glob strings Filter keys with glob pattern (repeatable)
--glob-sep string Characters treated as separators for globbing (default '/-_.@: ')