CLI: Add generate-tests and generate-examples aliases#76
CLI: Add generate-tests and generate-examples aliases#76keerthivasan2002 wants to merge 4 commits intopromptdriven:mainfrom
Conversation
There was a problem hiding this comment.
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.
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.