mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 10:12:29 +08:00 
			
		
		
		
	cmd: Add newline character to version string in CLI output (#5895)
This commit is contained in:
		@ -106,7 +106,7 @@ const fullDocsFooter = `Full documentation is available at:
 | 
				
			|||||||
https://caddyserver.com/docs/command-line`
 | 
					https://caddyserver.com/docs/command-line`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	rootCmd.SetVersionTemplate("{{.Version}}")
 | 
						rootCmd.SetVersionTemplate("{{.Version}}\n")
 | 
				
			||||||
	rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n")
 | 
						rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user