cmd: export CaddyVersion(), Commands() (#4316)

* cmd: Export CaddyVersion()

* cmd: Add getter Commands()
This commit is contained in:
peymaneh
2021-09-02 02:08:02 +02:00
committed by GitHub
parent 105dac8c2a
commit 9f6393c64c
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ func cmdReload(fl Flags) (int, error) {
}
func cmdVersion(_ Flags) (int, error) {
fmt.Println(caddyVersion())
fmt.Println(CaddyVersion())
return caddy.ExitCodeSuccess, nil
}