feat(set): adds --safe flag for preventing accidental overwrites
This commit is contained in:
parent
6e1af5ba28
commit
ac847f34ca
4 changed files with 26 additions and 0 deletions
2
testdata/help-set.ct
vendored
2
testdata/help-set.ct
vendored
|
|
@ -24,6 +24,7 @@ Flags:
|
|||
-e, --encrypt Encrypt the value at rest using age
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
--safe Do not overwrite if the key already exists
|
||||
-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.
|
||||
|
||||
|
|
@ -49,4 +50,5 @@ Flags:
|
|||
-e, --encrypt Encrypt the value at rest using age
|
||||
-h, --help help for set
|
||||
-i, --interactive Prompt before overwriting an existing key
|
||||
--safe Do not overwrite if the key already exists
|
||||
-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