From 541f679dee07fc2e5907f949155d6bef8ba4eb3d Mon Sep 17 00:00:00 2001 From: keerthivasan2002 Date: Mon, 29 Sep 2025 13:07:37 +0800 Subject: [PATCH 1/3] CLI: add generate-tests and generate-examples aliases --- README.md | 5 +++++ pdd/cli.py | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index f420c04..0b2baee 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 **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 9856818..4309794 100644 --- a/pdd/cli.py +++ b/pdd/cli.py @@ -1555,6 +1555,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__": From e7fd14fece8c4efda91f6949b265d03b2247b2fc Mon Sep 17 00:00:00 2001 From: Sivagurunathan Keerthivasan <75198667+keerthivasan2002@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:50:33 +0800 Subject: [PATCH 2/3] Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 08183ba..487634d 100644 --- a/README.md +++ b/README.md @@ -462,7 +462,7 @@ 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 **Aliases**: The following shorthand forms are also supported: +**Aliases**: The following shorthand forms are also supported: - `pdd generate tests` → `pdd test` - `pdd generate examples` → `pdd example` From 072517389bafa1add6fe1e898040713cee18c2d8 Mon Sep 17 00:00:00 2001 From: Sivagurunathan Keerthivasan <75198667+keerthivasan2002@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:18:32 +0800 Subject: [PATCH 3/3] Update cli.py --- pdd/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdd/cli.py b/pdd/cli.py index 8f9d8f4..49cf35e 100644 --- a/pdd/cli.py +++ b/pdd/cli.py @@ -1572,8 +1572,8 @@ def setup_cmd(ctx: click.Context) -> None: # pdd generate tests ... # pdd generate examples ... -cli.add_command(test, "generate-tests") -cli.add_command(example, "generate-examples") +cli.add_command(test, "generate tests") +cli.add_command(example, "generate examples") # --- Entry Point --- if __name__ == "__main__":