From f4ff309d0b7b26d66ec1bb4e1f8a1490682edce0 Mon Sep 17 00:00:00 2001 From: MohammadAmin Baranzehi Date: Mon, 14 Sep 2026 14:17:35 +0330 Subject: [PATCH] feat(cli): alias add-gunicorn-service to hdg for seamless legacy compatibility --- cli.py | 4 ++-- hdg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.py b/cli.py index 07539ad..f1c57c4 100644 --- a/cli.py +++ b/cli.py @@ -298,11 +298,11 @@ def cmd_install(args: argparse.Namespace) -> int: hdg_script = PROJECT_ROOT / "hdg" if bin_dir.exists() and hdg_script.exists(): - for link_name in ["hdg", "v-django", "hestia-django"]: + for link_name in ["hdg", "v-django", "hestia-django", "add-gunicorn-service"]: target = bin_dir / link_name executor.run(f"ln -sf {hdg_script} {target}", check=False) executor.run(f"chmod +x {hdg_script}", check=False) - success("Global commands installed: 'hdg', 'v-django', 'hestia-django'") + success("Global commands installed: 'hdg', 'v-django', 'add-gunicorn-service'") return 0 diff --git a/hdg b/hdg index 5332cd9..b288207 100644 --- a/hdg +++ b/hdg @@ -46,7 +46,7 @@ install_global_links() { local bin_dir="/usr/local/bin" [ ! -d "$bin_dir" ] && return 0 - local links=("hdg" "v-django" "hestia-django") + local links=("hdg" "v-django" "hestia-django" "add-gunicorn-service") local need_install=0 for link in "${links[@]}"; do