26 lines
314 B
Go
26 lines
314 B
Go
|
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, just do an ls
|
||
|
parms = append(parms, "ui")
|
||
|
}
|
||
|
os.Exit(app.run(parms))
|
||
|
}
|