version command returns linebreak at the end of the string

This commit is contained in:
Marvin Steadfast 2021-04-27 09:28:56 +02:00
parent 8d389aa3ad
commit b013451c4c

View File

@ -44,7 +44,7 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version informations",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("wg-quicker %s, commit %s, build on %s", version, commit, date) // nolint: forbidigo
fmt.Printf("wg-quicker %s, commit %s, build on %s\n", version, commit, date) // nolint: forbidigo
},
}