Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testscript: suggest misspelled commands #198

Merged
merged 1 commit into from
May 5, 2023
Merged

Commits on May 5, 2023

  1. testscript: suggest misspelled commands

    If a command is not found, we go through the list of defined commands
    and check if any of them are sufficiently close to the one used.
    "Sufficiently close" is defined by having a Damerau-Levenshtein distance
    of 1, which feels like it hits the sweet spot between usefulness and
    ease of implementation.
    
    The negation case is still special-cased, as negation is not in the set
    of defined commands.
    
    Fixes rogpeppe#190
    Merovius committed May 5, 2023
    Configuration menu
    Copy the full SHA
    d899f7f View commit details
    Browse the repository at this point in the history