Skip to content

feat: add 'did you mean' suggestions for unknown commands#2

Merged
xkilldash9x merged 1 commit into
mainfrom
palette-did-you-mean-2612501776254675834
Jan 14, 2026
Merged

feat: add 'did you mean' suggestions for unknown commands#2
xkilldash9x merged 1 commit into
mainfrom
palette-did-you-mean-2612501776254675834

Conversation

@xkilldash9x
Copy link
Copy Markdown
Collaborator

Implements a Levenshtein distance-based suggestion mechanism for the sfw CLI. When a user types an unknown command (e.g., 'chek' instead of 'check'), the tool now suggests the closest valid command.

DX Improvement:

  • Adds immediate feedback for typos.
  • Reduces friction by suggesting the intended command.
  • Preserves existing help output.

Implements a Levenshtein distance-based suggestion mechanism for the sfw CLI.
When a user types an unknown command (e.g., 'chek' instead of 'check'),
the tool now suggests the closest valid command.

DX Improvement:
- Adds immediate feedback for typos.
- Reduces friction by suggesting the intended command.
- Preserves existing help output.
@xkilldash9x xkilldash9x merged commit f22fd1f into main Jan 14, 2026
1 check passed
@xkilldash9x xkilldash9x deleted the palette-did-you-mean-2612501776254675834 branch January 14, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant