summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-08-03 10:42:42 -0600
committerMatthew Holt <[email protected]>2020-08-03 10:42:42 -0600
commit68529e2f9ecb6b5cb9552482d73b8337252c7f59 (patch)
tree838bae14210555548fe3fc1f99de06ac1c781099 /cmd
parent399eff415ca530c02b21506949526ca7fd0698fe (diff)
downloadcaddy-68529e2f9ecb6b5cb9552482d73b8337252c7f59.tar.gz
caddy-68529e2f9ecb6b5cb9552482d73b8337252c7f59.zip
cmd: Print caddy version with environ or --environ (#3627)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/main.go1
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)