feat(cli): alias add-gunicorn-service to hdg for seamless legacy compatibility

This commit is contained in:
2026-09-14 14:17:35 +03:30
parent ef14257f1e
commit f4ff309d0b
2 changed files with 3 additions and 3 deletions

4
cli.py
View File

@@ -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

2
hdg
View File

@@ -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