Small changes to CLI commands PR

This commit is contained in:
Torkel Ödegaard
2015-02-16 07:40:21 +01:00
parent b6428b08d0
commit 56d8fe4a22
6 changed files with 20 additions and 14 deletions
+5 -4
View File
@@ -2,23 +2,24 @@ package cmd
import (
"fmt"
"os"
"text/tabwriter"
"github.com/codegangsta/cli"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/log"
m "github.com/grafana/grafana/pkg/models"
"os"
"text/tabwriter"
)
var (
ListDataSources = cli.Command{
Name: "datasource",
Name: "datasources",
Usage: "list datasources",
Description: "Lists the datasources in the system",
Action: listDatasources,
}
CreateDataSource = cli.Command{
Name: "datasource:create",
Name: "datasources:create",
Usage: "creates a new datasource",
Description: "Creates a new datasource",
Action: createDataSource,