Skip to content

Conversation

@Lykos153
Copy link

@Lykos153 Lykos153 commented Feb 5, 2025

This PR completely refactors cli.py:

  • Deduplicates code for improved maintainability.
  • Replaces manual argument parsing with Click (as used in the upstream
    Solo library), enabling easier argument handling and better help/usage
    messages.
  • Enhances the prompt with in-memory history, basic completion, and
    auto-suggestions.

This improves usability and aligns the CLI with best practices.

It was only after all my work was done that I realized there was a four year old PR (#41) with the same goal.

This commit completely refactors `cli.py`:

- Deduplicates code for improved maintainability.
- Replaces manual argument parsing with Click (as used in the upstream
Solo library), enabling easier argument handling and better help/usage
messages.
- Enhances the prompt with in-memory history, basic completion, and
auto-suggestions.

This improves usability and aligns the CLI with best practices.
@Lykos153 Lykos153 changed the title Refactor cli Refactor CLI with click Feb 5, 2025
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