-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Command aliases #30
Conversation
Reviewer's Guide by SourceryThis pull request introduces support for command aliases in the CLI. The changes include updates to the CLI generation logic to handle command aliases, modifications to the manifest and parser to support aliases, and updates to the generated CLI files to include alias handling. Additionally, test cases have been added to verify the functionality of command aliases. File-Level Changes
Tips
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jaykv - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟡 Testing: 3 issues found
- 🟡 Complexity: 2 issues found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Support command aliases with |
i.e. the following manifest
will print "listing" for
testcli list
,testcli ls
, andtestcli l
and print "removing stuff" fortestcli stuff remove
,testcli stuff rm
, andtestcli stuff r
.Summary by Sourcery
Add support for command aliases in CLI commands, allowing multiple names for a single command using the '|' separator. Enhance CLI generation and add a callback to display aliases. Update documentation and add tests for the new functionality.
New Features:
Enhancements:
Documentation:
Tests: