From d1fc0d6216105894d4245110a70c4f4ab6fffd40 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Thu, 23 Jul 2026 23:51:42 +0530 Subject: [PATCH] Update function: `create_template` - Minor display changes --- modules/proxmox_host/functions/create_template.fish | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/proxmox_host/functions/create_template.fish b/modules/proxmox_host/functions/create_template.fish index 5377fdb..1ba281e 100644 --- a/modules/proxmox_host/functions/create_template.fish +++ b/modules/proxmox_host/functions/create_template.fish @@ -70,18 +70,14 @@ function create_template --description "Create a Proxmox cloud-init template" end # Summary - echo - echo "Configuration" - echo + printf "Create template:\n" printf " %-12s %s\n" "VMID" "$vmid" printf " %-12s %s\n" "Name" "$name" printf " %-12s %s\n" "Bridge" "$bridge" printf " %-12s %s\n" "Image" "$image" printf " %-12s %s\n" "Storage" "$storage" - echo - printf " %-12s %s\n" "Machine" "$VM_TEMPLATE_MACHINE" printf " %-12s %s\n" "CPU" "$VM_TEMPLATE_CPU" printf " %-12s %s\n" "Cores" "$VM_TEMPLATE_CORES" @@ -90,9 +86,10 @@ function create_template --description "Create a Proxmox cloud-init template" printf " %-12s %s\n" "SCSI HW" "$VM_TEMPLATE_SCSIHW" printf " %-12s %s\n" "OS Type" "$VM_TEMPLATE_OSTYPE" - echo + printf " You can edit these default values in:\n" + printf " $__fish_sysconf_dir/modules/proxmox_host/conf.d/90_overrides.fish\n\n" - read -P "Create template? [y/N] " confirm + read -P "Continue? [y/N]: " confirm if not string match -iqr '^y(es)?$' "$confirm" echo "Aborted."