balpan-rs / balpan

Simple CLI Tool that supports your onboarding for a journey on source code.
37 stars 7 forks source link

subcommand suggestion using distance #50

Closed notJoon closed 1 year ago

notJoon commented 1 year ago

suggesting a subcommand when a typo is detected.

Currently, the size of the command is not that large, so we are simply comparing it with levenshtein distance, but if the command grows later, we may need to consider using other string algorithms.

malkoG commented 1 year ago

Nice work! :+1: