Basic import of json dashboards is working, needs more work to handle updates, and continous watching, #22

This commit is contained in:
Torkel Ödegaard
2015-01-29 14:33:50 +01:00
parent 1d6413bfae
commit d95c5e6674
4 changed files with 137 additions and 16 deletions
+4 -1
View File
@@ -6,6 +6,7 @@ import (
"strconv"
"github.com/torkelo/grafana-pro/pkg/cmd"
"github.com/torkelo/grafana-pro/pkg/log"
"github.com/torkelo/grafana-pro/pkg/setting"
"github.com/codegangsta/cli"
@@ -30,7 +31,9 @@ func main() {
app.Name = "Grafana Backend"
app.Usage = "grafana web"
app.Version = version
app.Commands = []cli.Command{cmd.CmdWeb}
app.Commands = []cli.Command{cmd.CmdWeb, cmd.CmdImportJson}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)
log.Close()
}