Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ Here is a brief overview of the main commands provided by PDD. Click the command
- **[`auto-deps`](#15-auto-deps)**: Analyzes and inserts needed dependencies into a prompt file.
- **[`verify`](#16-verify)**: Verifies functional correctness by running a program and judging its output against the prompt's intent using an LLM.

**Aliases**: The following shorthand forms are also supported:
- `pdd generate tests` → `pdd test`
- `pdd generate examples` → `pdd example`


## Global Options

These options can be used with any command:
Expand Down
7 changes: 7 additions & 0 deletions pdd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,13 @@ def setup_cmd(ctx: click.Context) -> None:
except Exception as exc:
handle_error(exc, command_name, quiet_mode)

# --- Aliases for generate subcommands ---
# Users can now run:
# pdd generate tests ...
# pdd generate examples ...

cli.add_command(test, "generate tests")
cli.add_command(example, "generate examples")

# --- Entry Point ---
if __name__ == "__main__":
Expand Down