From 11a082c06048bffb18aec4bb0eed0f0ec5fdc85b Mon Sep 17 00:00:00 2001 From: Thanmay Nath <110758050+ThanmayNath@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:28:32 +0530 Subject: [PATCH] cmd: Add newline character to version string in CLI output (#5895) --- cmd/cobra.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cobra.go b/cmd/cobra.go index c071f4a1..d43b4372 100644 --- a/cmd/cobra.go +++ b/cmd/cobra.go @@ -106,7 +106,7 @@ const fullDocsFooter = `Full documentation is available at: https://caddyserver.com/docs/command-line` func init() { - rootCmd.SetVersionTemplate("{{.Version}}") + rootCmd.SetVersionTemplate("{{.Version}}\n") rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n") }