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:
parent
db607ac696
commit
c9b448d508
47 changed files with 144 additions and 118 deletions
11
testdata/config-get.ct
vendored
11
testdata/config-get.ct
vendored
|
|
@ -7,7 +7,12 @@ default
|
|||
$ pda config get git.auto_commit
|
||||
false
|
||||
|
||||
# Unknown key with suggestion
|
||||
# Unknown key with suggestion (typo)
|
||||
$ pda config get git.auto_comit --> FAIL
|
||||
FAIL unknown config key 'git.auto_comit'
|
||||
hint did you mean 'git.auto_commit'?
|
||||
FAIL unknown config key 'git.auto_comit'
|
||||
hint did you mean 'git.auto_commit'?
|
||||
|
||||
# Unknown key with suggestion (leaf match, no prefix)
|
||||
$ pda config get auto_commit --> FAIL
|
||||
FAIL unknown config key 'auto_commit'
|
||||
hint did you mean 'git.auto_commit'?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue