CLI: Order commands alphabetically

This commit is contained in:
Jason Wilder 2015-02-15 14:00:06 -07:00
parent a3925e8aa0
commit 9223c95481
2 changed files with 5 additions and 3 deletions

View File

@ -31,9 +31,11 @@ func main() {
app.Name = "Grafana Backend"
app.Usage = "grafana web"
app.Version = version
app.Commands = []cli.Command{cmd.Web, cmd.ImportJson,
app.Commands = []cli.Command{
cmd.ListAccounts, cmd.CreateAccount, cmd.DeleteAccount,
cmd.ListDataSources, cmd.CreateDataSource, cmd.DescribeDataSource, cmd.DeleteDataSource}
cmd.ImportDashboard,
cmd.ListDataSources, cmd.CreateDataSource, cmd.DescribeDataSource, cmd.DeleteDataSource,
cmd.Web}
app.Flags = append(app.Flags, []cli.Flag{
cli.StringFlag{
Name: "config",

View File

@ -14,7 +14,7 @@ import (
"github.com/grafana/grafana/pkg/setting"
)
var ImportJson = cli.Command{
var ImportDashboard = cli.Command{
Name: "dashboard:import",
Usage: "imports dashboards in JSON from a directory",
Description: "Starts Grafana import process",