From 3030fed67d49d9b99ff53e297689ff591f9cc5a9 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 10 Jul 2024 14:51:43 +0200 Subject: [PATCH] Make project name configurable --- version/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version/version.go b/version/version.go index 250318c7..d2a984e7 100644 --- a/version/version.go +++ b/version/version.go @@ -79,8 +79,8 @@ func Version(version, gitDescribe, gitHash string) *VersionInfo { } // Print writes verbose version output to stdout. -func (v *VersionInfo) Print() { - fmt.Println("Icinga DB version:", v.Version) +func (v *VersionInfo) Print(projectName string) { + fmt.Printf("%s version: %s\n", projectName, v.Version) fmt.Println() fmt.Println("Build information:")