CLI: Add datasource list command

Lists all the datasources for an account via the CLI
This commit is contained in:
Jason Wilder
2015-02-15 11:44:17 -07:00
parent ca4124940a
commit dda760b9b5
2 changed files with 61 additions and 1 deletions

View File

@ -32,7 +32,8 @@ func main() {
app.Usage = "grafana web"
app.Version = version
app.Commands = []cli.Command{cmd.Web, cmd.ImportJson,
cmd.ListAccounts, cmd.CreateAccount, cmd.DeleteAccount}
cmd.ListAccounts, cmd.CreateAccount, cmd.DeleteAccount,
cmd.ListDataSources}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)