revert: removes --secrets - to be replaced with encryption

This commit is contained in:
Lewis Wynne 2026-02-10 23:22:06 +00:00
parent 34970ac9d9
commit 4509611185
27 changed files with 132 additions and 269 deletions

View file

@ -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

View file

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

View file

@ -1,6 +0,0 @@
$ fecho cmd echo hello
$ pda set a < cmd
$ pda get a
echo hello
$ pda get a --run --secret
hello

View file

@ -1,3 +0,0 @@
$ pda set foo bar
$ pda get foo --secret
bar

View file

@ -1,3 +0,0 @@
$ pda set a b --secret
$ pda get a --> FAIL
Error: cannot get 'a': marked as secret, run with --secret

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,4 +0,0 @@
$ fecho cmd echo hello world
$ pda set a --secret < cmd
$ pda get a --secret --run --include-binary
hello world

View file

@ -1,4 +0,0 @@
$ fecho cmd echo hello world
$ pda set a --secret < cmd
$ pda get a --include-binary --secret
echo hello world

View file

@ -1,4 +0,0 @@
$ fecho cmd echo hello world
$ pda set a --secret < cmd
$ pda get a --run --secret
hello world

View file

@ -1,4 +0,0 @@
$ fecho cmd echo hello world
$ pda set a --secret < cmd
$ pda get a --secret
echo hello world

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -1,7 +1,8 @@
$ pda set foo 1
$ pda set bar 2
$ pda ls
a **********
a echo hello
a1 1
a2 2
b1 3

View file

@ -1 +0,0 @@
$ pda set foo foobar --secret

View file

@ -1 +0,0 @@
$ pda set a b --secret --ttl 10m