Initial Commit
This commit is contained in:
25
main.go
Normal file
25
main.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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))
|
||||
}
|
||||
Reference in New Issue
Block a user