From f299f7f89575fd555da79fe1873fb6feb98f3081 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 1 Aug 2026 16:11:51 +0000 Subject: [PATCH] feat: show version on startup and in setup.sh output --- .gitignore | 1 + cmd/deploy/main.go | 1 + setup.sh | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e2f374a..9d42f6b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ bin/ wallarm-upx bin/ wallarm-linux-amd64 +deploy diff --git a/cmd/deploy/main.go b/cmd/deploy/main.go index 0c0c3f3..e75520a 100644 --- a/cmd/deploy/main.go +++ b/cmd/deploy/main.go @@ -293,6 +293,7 @@ deployment. On subsequent runs, it shows your existing deployments. // ── Default: preflight → TUI wizard/dashboard ──────────────── fmt.Println("═══ Wallarm Deployment Manager ═══") + fmt.Printf(" version %s\n", version) fmt.Println() // 1. Preflight checks (always run on start) diff --git a/setup.sh b/setup.sh index a22dc45..9aa76ba 100644 --- a/setup.sh +++ b/setup.sh @@ -87,7 +87,8 @@ rm -rf "${SOURCE_DIR}"/* cp -r cmd internal go.mod go.sum "${SOURCE_DIR}/" 2>/dev/null || true echo -echo -e "${GREEN}${BOLD}Ready!${NC}" +V=$("${WALLARM_DIR}/deploy" --version 2>/dev/null || echo "unknown") +echo -e "${GREEN}${BOLD}Ready!${NC} (${V})" echo echo -e " ${CYAN}sudo /opt/wallarm/deploy${NC} — Start the TUI" echo -e " ${CYAN}/opt/wallarm/deploy --help${NC} — Show commands"