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

CLI: Add 'clear' command and command suggestion #342

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

dexvleads
Copy link
Contributor

@dexvleads dexvleads commented Jan 2, 2025

What's new

  • Introduced a new CLI command 'clear' (alias 'cls') to clear the terminal screen.
  • Enhanced command not found feedback by suggesting similar commands based on user input.
  • Added a function to calculate string distance for better command matching.

For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

- Introduced a new CLI command 'clear' (alias 'cls') to clear the terminal screen.
- Enhanced command not found feedback by suggesting similar commands based on user input.
- Added a function to calculate string distance for better command matching.
@dexvleads dexvleads changed the title Add 'clear' command and improve command suggestion in CLI CLI: add 'clear' command and improve command suggestion Jan 2, 2025
applications/services/cli/cli.c Outdated Show resolved Hide resolved
applications/services/cli/cli.c Outdated Show resolved Hide resolved
applications/services/cli/cli.c Outdated Show resolved Hide resolved
@Willy-JL Willy-JL added the feature New feature or request label Jan 13, 2025
@Willy-JL Willy-JL changed the title CLI: add 'clear' command and improve command suggestion CLI: Add 'clear' command and command suggestion Jan 13, 2025
@Willy-JL Willy-JL merged commit dbbecd9 into Next-Flip:dev Jan 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants