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
|
|
@ -139,6 +139,12 @@ pda set name "Alice"
|
|||
echo "Alice" | pda set name
|
||||
cat dogs.txt | pda set dogs
|
||||
pda set kitty < cat.png
|
||||
|
||||
# --safe to skip if the key already exists.
|
||||
pda set name "Alice" --safe
|
||||
pda set name "Bob" --safe
|
||||
pda get name
|
||||
# Alice
|
||||
```
|
||||
|
||||
<p align="center"></p><!-- spacer -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue