-
Notifications
You must be signed in to change notification settings - Fork 31
CLI: Add generate-tests and generate-examples aliases #76
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
base: main
Are you sure you want to change the base?
CLI: Add generate-tests and generate-examples aliases #76
Conversation
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.
Pull Request Overview
This PR adds convenience aliases for the test and example commands to improve CLI ergonomics. Users can now use more descriptive command names like pdd generate-tests and pdd generate-examples instead of the shorter pdd test and pdd example.
Key changes:
- Added alias registration in CLI module to map new command names to existing functionality
- Updated documentation to reflect the new command aliases
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pdd/cli.py | Added alias registration for generate-tests and generate-examples commands |
| README.md | Updated command overview section to document the new aliases |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Why did you add hyphens? Wouldn't it be easier just sticking with spaces to separate commands? |
|
I went with hyphens since many CLI commands use them for multi-word subcommands, but I’m open to switching to spaces if that improves usability. |
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Fixes #56 |
|
@keerthivasan2002 has this been tested? |
Fix CLI: add generate-tests and generate-examples aliases
Issue
Users currently have to type
pdd testorpdd exampleexplicitly.It would be more natural to allow
pdd generate-tests ...andpdd generate-examples ...as shorthand.Solution
Added convenience aliases to support the following:
pdd generate-tests ...→ maps topdd test ...pdd generate-examples ...→ maps topdd example ...This improves ergonomics without breaking existing commands.
Key Files Changed
Core Code:
pdd/cli.py— added alias registration withcli.add_command.Documentation:
README.md— updated Command Overview section to list the new aliases.