mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
27 lines
428 B
Go
27 lines
428 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"runtime"
|
|
|
|
"github.com/torkelo/grafana-pro/pkg/cmd"
|
|
|
|
"github.com/codegangsta/cli"
|
|
)
|
|
|
|
const APP_VER = "0.1.0 Alpha"
|
|
|
|
func init() {
|
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
|
}
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "Grafana Backend"
|
|
app.Usage = "grafana web"
|
|
app.Version = APP_VER
|
|
app.Commands = []cli.Command{cmd.CmdWeb}
|
|
app.Flags = append(app.Flags, []cli.Flag{}...)
|
|
app.Run(os.Args)
|
|
}
|