gime/main.go

26 lines
338 B
Go
Raw Normal View History

2019-02-21 02:44:07 +00:00
package main
import "os"
const (
AppName = "gime"
AppVersion = 1
DefRoundTo = "1m0s"
)
var app *AppState
func main() {
app = NewApp()
var parms []string
if len(os.Args) > 1 {
parms = os.Args[1:]
} else {
// if no parameters were passed, just do a status
parms = append(parms, "status")
}
os.Exit(app.run(parms))
}