feat(cli): alias add-gunicorn-service to hdg for seamless legacy compatibility
This commit is contained in:
4
cli.py
4
cli.py
@@ -298,11 +298,11 @@ def cmd_install(args: argparse.Namespace) -> int:
|
|||||||
hdg_script = PROJECT_ROOT / "hdg"
|
hdg_script = PROJECT_ROOT / "hdg"
|
||||||
|
|
||||||
if bin_dir.exists() and hdg_script.exists():
|
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
|
target = bin_dir / link_name
|
||||||
executor.run(f"ln -sf {hdg_script} {target}", check=False)
|
executor.run(f"ln -sf {hdg_script} {target}", check=False)
|
||||||
executor.run(f"chmod +x {hdg_script}", 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
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
hdg
2
hdg
@@ -46,7 +46,7 @@ install_global_links() {
|
|||||||
local bin_dir="/usr/local/bin"
|
local bin_dir="/usr/local/bin"
|
||||||
[ ! -d "$bin_dir" ] && return 0
|
[ ! -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
|
local need_install=0
|
||||||
|
|
||||||
for link in "${links[@]}"; do
|
for link in "${links[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user