mfer/internal/cli/entry.go
Jeffrey Paul 7a8a1b4a4a
All checks were successful
continuous-integration/drone/push Build is passing
rollup from next branch (#4)
Co-authored-by: sneak <sneak@sneak.berlin>
Reviewed-on: #4
2022-12-04 07:59:36 +00:00

26 lines
330 B
Go

package cli
import (
"os"
)
var NO_COLOR bool
func init() {
NO_COLOR = false
if _, exists := os.LookupEnv("NO_COLOR"); exists {
NO_COLOR = true
}
}
func Run(Appname, Version, Gitrev string) int {
m := &CLIApp{}
m.appname = Appname
m.version = Version
m.gitrev = Gitrev
m.exitCode = 0
m.run()
return m.exitCode
}