cmd: Print caddy version with environ or --environ (#3627)

This commit is contained in:
Matthew Holt 2020-08-03 10:42:42 -06:00
parent 399eff415c
commit 68529e2f9e
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5

View File

@ -410,6 +410,7 @@ func printEnvironment() {
fmt.Printf("caddy.AppDataDir=%s\n", caddy.AppDataDir())
fmt.Printf("caddy.AppConfigDir=%s\n", caddy.AppConfigDir())
fmt.Printf("caddy.ConfigAutosavePath=%s\n", caddy.ConfigAutosavePath)
fmt.Printf("caddy.Version=%s\n", caddy.GoModule().Version)
fmt.Printf("runtime.GOOS=%s\n", runtime.GOOS)
fmt.Printf("runtime.GOARCH=%s\n", runtime.GOARCH)
fmt.Printf("runtime.Compiler=%s\n", runtime.Compiler)