Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7c8fa067
Commit
7c8fa067
authored
Feb 15, 2015
by
Jason Wilder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLI: Conver account flag to required arg
Follows the same convention as other commands.
parent
f2e9ec63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
pkg/cmd/dashboard.go
+4
-8
No files found.
pkg/cmd/dashboard.go
View file @
7c8fa067
...
...
@@ -24,10 +24,6 @@ var ImportJson = cli.Command{
Name
:
"dir"
,
Usage
:
"path to folder containing json dashboards"
,
},
cli
.
StringFlag
{
Name
:
"account"
,
Usage
:
"Account name to save dashboards under"
,
},
},
}
...
...
@@ -49,12 +45,12 @@ func runImport(c *cli.Context) {
return
}
accountName
:=
c
.
String
(
"account"
)
if
len
(
accountName
)
==
0
{
log
.
Error
(
3
,
"Missing command flag --account"
)
return
if
!
c
.
Args
()
.
Present
()
{
log
.
ConsoleFatal
(
"Account name arg is required"
)
}
accountName
:=
c
.
Args
()
.
First
()
setting
.
NewConfigContext
()
sqlstore
.
NewEngine
()
sqlstore
.
EnsureAdminUser
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment