test(get): secret data
This commit is contained in:
parent
e710501d91
commit
f24865eab4
8 changed files with 79 additions and 0 deletions
16
testdata/get__secret__err__with__binary_run.ct
vendored
Normal file
16
testdata/get__secret__err__with__binary_run.ct
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --include-binary --run --> FAIL
|
||||
Error: "a" is marked secret; re-run with --secret to display it
|
||||
Usage:
|
||||
pda get KEY[@DB] [flags]
|
||||
|
||||
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
|
||||
--secret display values marked as secret
|
||||
Loading…
Add table
Add a link
Reference in a new issue