revert: removes --secrets - to be replaced with encryption
This commit is contained in:
parent
34970ac9d9
commit
4509611185
27 changed files with 132 additions and 269 deletions
6
testdata/get__missing__err__with__any.ct
vendored
6
testdata/get__missing__err__with__any.ct
vendored
|
|
@ -8,7 +8,7 @@ $ pda get foobar --secret --> FAIL
|
|||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: unknown flag: --secret
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: unknown flag: --secret
|
||||
Error: unknown flag: --secret
|
||||
|
|
|
|||
4
testdata/get__ok__with__binary_run_secret.ct
vendored
4
testdata/get__ok__with__binary_run_secret.ct
vendored
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello
|
||||
$ pda set foo < cmd
|
||||
$ pda get foo --include-binary --run --secret
|
||||
hello
|
||||
6
testdata/get__ok__with__run_secret.ct
vendored
6
testdata/get__ok__with__run_secret.ct
vendored
|
|
@ -1,6 +0,0 @@
|
|||
$ fecho cmd echo hello
|
||||
$ pda set a < cmd
|
||||
$ pda get a
|
||||
echo hello
|
||||
$ pda get a --run --secret
|
||||
hello
|
||||
3
testdata/get__ok__with__secret.ct
vendored
3
testdata/get__ok__with__secret.ct
vendored
|
|
@ -1,3 +0,0 @@
|
|||
$ pda set foo bar
|
||||
$ pda get foo --secret
|
||||
bar
|
||||
3
testdata/get__secret__err.ct
vendored
3
testdata/get__secret__err.ct
vendored
|
|
@ -1,3 +0,0 @@
|
|||
$ pda set a b --secret
|
||||
$ pda get a --> FAIL
|
||||
Error: cannot get 'a': marked as secret, run with --secret
|
||||
4
testdata/get__secret__err__with__binary.ct
vendored
4
testdata/get__secret__err__with__binary.ct
vendored
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --include-binary --> FAIL
|
||||
Error: cannot get 'a': marked as secret, run with --secret
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --include-binary --run --> FAIL
|
||||
Error: cannot get 'a': marked as secret, run with --secret
|
||||
4
testdata/get__secret__err__with__run.ct
vendored
4
testdata/get__secret__err__with__run.ct
vendored
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --run --> FAIL
|
||||
Error: cannot get 'a': marked as secret, run with --secret
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --secret --run --include-binary
|
||||
hello world
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --include-binary --secret
|
||||
echo hello world
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --run --secret
|
||||
hello world
|
||||
4
testdata/get__secret__ok__with__secret.ct
vendored
4
testdata/get__secret__ok__with__secret.ct
vendored
|
|
@ -1,4 +0,0 @@
|
|||
$ fecho cmd echo hello world
|
||||
$ pda set a --secret < cmd
|
||||
$ pda get a --secret
|
||||
echo hello world
|
||||
2
testdata/help__dump__ok.ct
vendored
2
testdata/help__dump__ok.ct
vendored
|
|
@ -13,7 +13,6 @@ Flags:
|
|||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
-h, --help help for export
|
||||
--secret Include entries marked as secret
|
||||
Dump all key/value pairs as NDJSON
|
||||
|
||||
Usage:
|
||||
|
|
@ -27,4 +26,3 @@ Flags:
|
|||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
-h, --help help for export
|
||||
--secret Include entries marked as secret
|
||||
|
|
|
|||
2
testdata/help__get__ok.ct
vendored
2
testdata/help__get__ok.ct
vendored
|
|
@ -20,7 +20,6 @@ Flags:
|
|||
-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
|
||||
Get the value of a key. Optionally specify a store.
|
||||
|
||||
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
|
||||
|
|
@ -41,4 +40,3 @@ Flags:
|
|||
-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
|
||||
|
|
|
|||
2
testdata/help__list__ok.ct
vendored
2
testdata/help__list__ok.ct
vendored
|
|
@ -17,7 +17,6 @@ Flags:
|
|||
-h, --help help for list
|
||||
--no-keys suppress the key column
|
||||
--no-values suppress the value column
|
||||
-S, --secret display values marked as secret
|
||||
-t, --ttl append a TTL column when entries expire
|
||||
List the contents of a store
|
||||
|
||||
|
|
@ -36,5 +35,4 @@ Flags:
|
|||
-h, --help help for list
|
||||
--no-keys suppress the key column
|
||||
--no-values suppress the value column
|
||||
-S, --secret display values marked as secret
|
||||
-t, --ttl append a TTL column when entries expire
|
||||
|
|
|
|||
2
testdata/help__set__ok.ct
vendored
2
testdata/help__set__ok.ct
vendored
|
|
@ -20,7 +20,6 @@ Aliases:
|
|||
Flags:
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
--secret Mark the stored value as a secret
|
||||
-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.
|
||||
|
||||
|
|
@ -42,5 +41,4 @@ Aliases:
|
|||
Flags:
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
--secret Mark the stored value as a secret
|
||||
-t, --ttl duration Expire the key after the provided duration (e.g. 24h, 30m)
|
||||
|
|
|
|||
3
testdata/remove__dedupe__ok.ct
vendored
3
testdata/remove__dedupe__ok.ct
vendored
|
|
@ -1,7 +1,8 @@
|
|||
$ pda set foo 1
|
||||
$ pda set bar 2
|
||||
$ pda ls
|
||||
a **********
|
||||
a echo hello
|
||||
|
||||
a1 1
|
||||
a2 2
|
||||
b1 3
|
||||
|
|
|
|||
1
testdata/set__ok__with__secret.ct
vendored
1
testdata/set__ok__with__secret.ct
vendored
|
|
@ -1 +0,0 @@
|
|||
$ pda set foo foobar --secret
|
||||
1
testdata/set__ok__with__secret_ttl.ct
vendored
1
testdata/set__ok__with__secret_ttl.ct
vendored
|
|
@ -1 +0,0 @@
|
|||
$ pda set a b --secret --ttl 10m
|
||||
Loading…
Add table
Add a link
Reference in a new issue