grafana/main.go

27 lines
432 B
Go
Raw Normal View History

2014-08-08 18:35:15 +08:00
package main
import (
"os"
2014-10-04 19:33:20 +08:00
"runtime"
2014-08-08 18:35:15 +08:00
2014-10-04 19:33:20 +08:00
"github.com/torkelo/grafana-pro/pkg/cmd"
2014-11-28 18:51:34 +08:00
"github.com/codegangsta/cli"
2014-08-08 18:35:15 +08:00
)
2014-10-04 19:33:20 +08:00
const APP_VER = "0.1.0 Alpha"
2014-08-08 18:35:15 +08:00
2014-10-04 19:33:20 +08:00
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
2014-08-08 18:35:15 +08:00
2014-10-04 19:33:20 +08:00
func main() {
app := cli.NewApp()
app.Name = "Grafana Pro"
app.Usage = "Grafana Pro Service"
app.Version = APP_VER
2014-11-28 18:51:34 +08:00
app.Commands = []cli.Command{cmd.CmdWeb}
2014-10-04 19:33:20 +08:00
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)
2014-08-08 18:35:15 +08:00
}