chore: add license headers and --drop golden test
This commit is contained in:
parent
32e7a79c71
commit
84c55311d1
3 changed files with 53 additions and 0 deletions
9
testdata/restore__drop__ok.ct
vendored
Normal file
9
testdata/restore__drop__ok.ct
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$ pda set existing keep-me
|
||||
$ pda set other also-keep
|
||||
$ fecho dumpfile {"key":"new","value":"hello","encoding":"text"}
|
||||
$ pda restore --drop --file dumpfile
|
||||
Restored 1 entries into @default
|
||||
$ pda get new
|
||||
hello
|
||||
$ pda get existing --> FAIL
|
||||
Error: cannot get 'existing': No such key
|
||||
Loading…
Add table
Add a link
Reference in a new issue