Add dashboards:export CLI command

Allows exporting all dashboards to a --dir or filtering dashboards
by title.  If no --dir is specified, a single dashboard must be
found and it will be sent to stdout which can be piped to a file.

Fixes #1498
This commit is contained in:
Jason Wilder
2015-03-03 23:07:00 -07:00
parent 2d7d70b90f
commit 433070a135
2 changed files with 113 additions and 11 deletions

View File

@ -43,6 +43,7 @@ func main() {
cmd.ListOrgs,
cmd.CreateOrg,
cmd.DeleteOrg,
cmd.ExportDashboard,
cmd.ImportDashboard,
cmd.ListDataSources,
cmd.CreateDataSource,