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.
This commit is contained in:
Lewis Wynne 2026-02-11 23:47:59 +00:00
parent db607ac696
commit c9b448d508
47 changed files with 144 additions and 118 deletions

View file

@ -3,9 +3,9 @@ $ pda set a2@rkg 2
$ pda set b1@rkg 3
$ pda rm --key "a*@rkg" -y
$ pda get a1@rkg --> FAIL
FAIL cannot get 'a1@rkg': no such key
hint did you mean 'b1'?
FAIL cannot get 'a1@rkg': no such key
hint did you mean 'b1'?
$ pda get a2@rkg --> FAIL
FAIL cannot get 'a2@rkg': no such key
FAIL cannot get 'a2@rkg': no such key
$ pda get b1@rkg
3