simplified getBanner() after testing it on windows

This commit is contained in:
2025-08-28 23:54:07 +02:00
parent b6b4b720df
commit 673d15b1b1

View File

@@ -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",