diff --git a/README.md b/README.md index b28618f..487634d 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/pdd/cli.py b/pdd/cli.py index cc23d44..49cf35e 100644 --- a/pdd/cli.py +++ b/pdd/cli.py @@ -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__":