Browse Source

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

master
Matthew Holt 5 years ago
parent
commit
68529e2f9e
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 1
      cmd/main.go

1
cmd/main.go

@ -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)

Loading…
Cancel
Save