aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorThanmay Nath <[email protected]>2023-10-16 21:28:32 +0530
committerGitHub <[email protected]>2023-10-16 09:58:32 -0600
commit24b0ecc310d71290ee004f7eaf364dce515eaff9 (patch)
tree4c805c808300c743a3045da79614126065217503 /cmd
parent7c82e265da8f90c1a1fee52c57af94587276ac56 (diff)
downloadcaddy-24b0ecc310d71290ee004f7eaf364dce515eaff9.tar.gz
caddy-24b0ecc310d71290ee004f7eaf364dce515eaff9.zip
cmd: Add newline character to version string in CLI output (#5895)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cobra.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cobra.go b/cmd/cobra.go
index c071f4a18..d43b43729 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")
}