feat: include summary of omitted binary data
This commit is contained in:
parent
d63c1fd77b
commit
07330be10b
9 changed files with 57 additions and 30 deletions
6
testdata/get__missing__err__with__any.ct
vendored
6
testdata/get__missing__err__with__any.ct
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
testdata/get__ok__with__binary.ct
vendored
2
testdata/get__ok__with__binary.ct
vendored
|
|
@ -1,3 +1,3 @@
|
|||
$ pda set a b
|
||||
$ pda get a --include-binary
|
||||
$ pda get a --base64
|
||||
b
|
||||
|
|
|
|||
2
testdata/get__ok__with__binary_run.ct
vendored
2
testdata/get__ok__with__binary_run.ct
vendored
|
|
@ -1,4 +1,4 @@
|
|||
$ fecho cmd echo hello
|
||||
$ pda set foo < cmd
|
||||
$ pda get foo --include-binary --run
|
||||
$ pda get foo --base64 --run
|
||||
hello
|
||||
|
|
|
|||
16
testdata/help__get__ok.ct
vendored
16
testdata/help__get__ok.ct
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
testdata/help__list__ok.ct
vendored
4
testdata/help__list__ok.ct
vendored
|
|
@ -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 '/-_.@: ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue