style: renames testdata so tests can actually be parsed at a glance
This commit is contained in:
parent
a4d2e919dc
commit
3c2a0129c0
83 changed files with 122 additions and 131 deletions
52
testdata/help-set.ct
vendored
Normal file
52
testdata/help-set.ct
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
$ pda help set
|
||||
$ pda set --help
|
||||
Set a key to a given value or stdin. Optionally specify a store.
|
||||
|
||||
Pass --encrypt to encrypt the value at rest using age. An identity file
|
||||
is generated automatically on first use.
|
||||
|
||||
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
||||
|
||||
For example:
|
||||
'Hello, {{ .NAME }}' can be substituted with NAME="John Doe".
|
||||
'Hello, {{ env "USER" }}' will fetch the USER env variable.
|
||||
'Hello, {{ default "World" .NAME }}' will default to World if NAME is blank.
|
||||
'Hello, {{ require .NAME }}' will error if NAME is blank.
|
||||
'{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob.
|
||||
|
||||
Usage:
|
||||
pda set KEY[@STORE] [VALUE] [flags]
|
||||
|
||||
Aliases:
|
||||
set, s
|
||||
|
||||
Flags:
|
||||
-e, --encrypt Encrypt the value at rest using age
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
-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.
|
||||
|
||||
Pass --encrypt to encrypt the value at rest using age. An identity file
|
||||
is generated automatically on first use.
|
||||
|
||||
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
||||
|
||||
For example:
|
||||
'Hello, {{ .NAME }}' can be substituted with NAME="John Doe".
|
||||
'Hello, {{ env "USER" }}' will fetch the USER env variable.
|
||||
'Hello, {{ default "World" .NAME }}' will default to World if NAME is blank.
|
||||
'Hello, {{ require .NAME }}' will error if NAME is blank.
|
||||
'{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob.
|
||||
|
||||
Usage:
|
||||
pda set KEY[@STORE] [VALUE] [flags]
|
||||
|
||||
Aliases:
|
||||
set, s
|
||||
|
||||
Flags:
|
||||
-e, --encrypt Encrypt the value at rest using age
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
-t, --ttl duration Expire the key after the provided duration (e.g. 24h, 30m)
|
||||
Loading…
Add table
Add a link
Reference in a new issue