44 lines
1.6 KiB
XML
44 lines
1.6 KiB
XML
$ pda help set
|
|
$ pda set --help
|
|
Set a key to a given value or stdin. Optionally specify a store.
|
|
|
|
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:
|
|
-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.
|
|
|
|
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:
|
|
-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)
|