chore: use flags instead of env vars

This commit is contained in:
boojack
2022-07-09 12:57:08 +08:00
parent 1d8603df2b
commit 7c94db0ca0
4 changed files with 36 additions and 21 deletions

View File

@@ -49,6 +49,13 @@ func Execute() {
profile: profile,
}
println("---")
println("profile")
println("mode:", profile.Mode)
println("port:", profile.Port)
println("dsn:", profile.DSN)
println("version:", profile.Version)
println("---")
println(greetingBanner)
fmt.Printf("Version %s has started at :%d\n", profile.Version, profile.Port)