gask/main.go

26 lines
310 B
Go
Raw Normal View History

2019-02-15 17:15:26 +00:00
package main
import (
"os"
)
const (
AppName = "gask"
AppVersion = 1
)
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, do a list
parms = append(parms, "ls")
2019-02-15 17:15:26 +00:00
}
os.Exit(app.run(parms))
}