mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CLI: Order commands alphabetically
This commit is contained in:
parent
a3925e8aa0
commit
9223c95481
6
main.go
6
main.go
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user