From 7cf30a7c6581b0db04a6829703cb41b551ca0505 Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 9 Jun 2026 23:48:32 +0200 Subject: [PATCH] feat(cli): set prog_name=ci to enable `ci` shell completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Invoking `python -m ci_orchestrator` now reports prog_name "ci" — matching the shell alias — so `--help` reads naturally and click shell completion keys off the _CI_COMPLETE env var. --- src/ci_orchestrator/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ci_orchestrator/__main__.py b/src/ci_orchestrator/__main__.py index b149674..acaf56f 100644 --- a/src/ci_orchestrator/__main__.py +++ b/src/ci_orchestrator/__main__.py @@ -58,4 +58,6 @@ cli.add_command(vmware) if __name__ == "__main__": # pragma: no cover - cli() + # prog_name="ci" matches the shell alias, so `--help` reads naturally and + # shell completion uses the _CI_COMPLETE env var (see scripts/install-ci-alias.sh). + cli(prog_name="ci")