From 673d15b1b14fb850bf1ecca618b61bc19f0f2c73 Mon Sep 17 00:00:00 2001 From: Andreas Schulte <0x0001f346@pm.me> Date: Thu, 28 Aug 2025 23:54:07 +0200 Subject: [PATCH] simplified getBanner() after testing it on windows --- config/banner.go | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/config/banner.go b/config/banner.go index 9082563..b43819c 100644 --- a/config/banner.go +++ b/config/banner.go @@ -51,25 +51,14 @@ func centerTextWithWhitespaces(text string, maxWidth int) string { } func getBanner() string { - version := centerTextWithWhitespaces("v"+VersionString, 38) - - // if runtime.GOOS != "windows" { - // return strings.Join( - // []string{ - // "+--------------------------------------+", - // "│ Ablage │", - // fmt.Sprintf("│%s│", version), - // "+--------------------------------------+", - // }, - // "\n", - // ) - // } - return strings.Join( []string{ "┌──────────────────────────────────────┐", "│ Ablage │", - fmt.Sprintf("│%s│", version), + fmt.Sprintf( + "│%s│", + centerTextWithWhitespaces("v"+VersionString, 38), + ), "└──────────────────────────────────────┘", }, "\n",