pda/testdata/import-key-filter.ct
lew c9b448d508 refactor(msg): single space between keyword and message, improve config suggestions
Tightens keyword formatting (ok/FAIL/hint/etc.) from two spaces to one.
Makes config key suggestions more generous: normalises spaces to
underscores, matches against leaf segments, and uses substring matching.
Updates all golden files.
2026-02-11 23:47:59 +00:00

16 lines
550 B
XML

$ pda set a1@ikf 1
$ pda set a2@ikf 2
$ pda set b1@ikf 3
$ fecho dumpfile {"key":"a1","value":"1","encoding":"text"} {"key":"a2","value":"2","encoding":"text"} {"key":"b1","value":"3","encoding":"text"}
$ pda rm a1@ikf a2@ikf b1@ikf
$ pda import ikf --key "a*" --file dumpfile
ok restored 2 entries into @ikf
$ pda get a1@ikf
1
$ pda get a2@ikf
2
$ pda get b1@ikf --> FAIL
FAIL cannot get 'b1@ikf': no such key
hint did you mean 'a1'?
$ pda import ikf --key "c*" --file dumpfile --> FAIL
FAIL cannot restore '@ikf': no matches for key pattern 'c*'