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

Improved CLI #15

Merged
merged 10 commits into from
Oct 9, 2024
Merged

Improved CLI #15

merged 10 commits into from
Oct 9, 2024

Conversation

gchqdev227
Copy link
Member

This PR adds in a new decorator-based CLI (similar to Click) which removes the need for separating CLI functions from actual code. The logic behind the new CLI is quite verbose so will hopefully be easy to follow, but please let me know if things get confusing.

The logic behind parser help pages in particular are harder to parse (irony acknowledged!), but the associated test cases are sufficient to show how they fit together. I encourage you to try out the CLI help pages yourself to make sure.

I very much recommend that we do not squash these commits.

@gchqdev227 gchqdev227 requested a review from ab295382 August 20, 2024 17:40
@gchqdev227 gchqdev227 self-assigned this Aug 20, 2024
…ter classes from inspect signatures for all supported versions of Python
@ab295382 ab295382 merged commit 74c4fa1 into main Oct 9, 2024
7 checks passed
@ab295382 ab295382 deleted the better-cli branch October 9, 2024 13:35
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.

2 participants