From 7fe91894d2fc5696ffb06fbaae1246f5140b84df Mon Sep 17 00:00:00 2001 From: candifloss Date: Fri, 24 Jul 2026 11:46:56 +0530 Subject: [PATCH] Update function `temp_internet` - Use a variable for usage help string --- modules/proxmox_host/functions/temp_internet.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/proxmox_host/functions/temp_internet.fish b/modules/proxmox_host/functions/temp_internet.fish index 7c19783..f65c98b 100644 --- a/modules/proxmox_host/functions/temp_internet.fish +++ b/modules/proxmox_host/functions/temp_internet.fish @@ -1,9 +1,10 @@ function temp_internet --description "Temporarily add or remove Internet access from a VM" set -l action $argv[1] set -l vmid $argv[2] + set -i usage_help "Usage: temp_internet {add|rm} [ip/cidr] [gateway] [bridge] [model]" if test -z "$action" - echo "Usage: temp_internet {add|rm} [ip/cidr] [gateway] [bridge] [model]" + echo "$usage_help" return 1 end @@ -88,7 +89,7 @@ function temp_internet --description "Temporarily add or remove Internet access restartvm $vmid case '*' - echo "Usage: temp_internet {add|rm} [ip/cidr] [gateway] [bridge] [model]" + echo "$usage_help" return 1 end end \ No newline at end of file