Skip to content

Commit

Permalink
Merge pull request #40 from Icinga/make-project-name-configurable
Browse files Browse the repository at this point in the history
Make project name configurable
  • Loading branch information
julianbrost authored Jul 19, 2024
2 parents a1fa2ad + 3030fed commit 4faebd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down

0 comments on commit 4faebd3

Please sign in to comment.