mfer/src/app.go

26 lines
338 B
Go

package mfer
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, Buildarch string) int {
m := &mfer{}
m.appname = Appname
m.version = Version
m.buildarch = Buildarch
m.exitCode = 0
m.run()
return m.exitCode
}