diff options
author | Matthew Holt <[email protected]> | 2020-08-03 10:42:42 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-08-03 10:42:42 -0600 |
commit | 68529e2f9ecb6b5cb9552482d73b8337252c7f59 (patch) | |
tree | 838bae14210555548fe3fc1f99de06ac1c781099 /cmd/main.go | |
parent | 399eff415ca530c02b21506949526ca7fd0698fe (diff) | |
download | caddy-68529e2f9ecb6b5cb9552482d73b8337252c7f59.tar.gz caddy-68529e2f9ecb6b5cb9552482d73b8337252c7f59.zip |
cmd: Print caddy version with environ or --environ (#3627)
Diffstat (limited to 'cmd/main.go')
-rw-r--r-- | cmd/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/main.go b/cmd/main.go index 00d5d1385..914df2157 100644 --- a/cmd/main.go +++ b/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) |