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
6de1399c
Commit
6de1399c
authored
Jun 03, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cli): fixes broken import
parent
15aeb4ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pkg/cmd/grafana-cli/commands/install_command.go
+2
-3
No files found.
pkg/cmd/grafana-cli/commands/install_command.go
View file @
6de1399c
...
...
@@ -17,7 +17,6 @@ import (
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
m
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
s
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/lunny/log"
)
func
validateInput
(
c
CommandLine
,
pluginFolder
string
)
error
{
...
...
@@ -89,7 +88,7 @@ func InstallPlugin(pluginName, version string, c CommandLine) error {
return
err
}
log
.
Infof
(
"%s Installed %s successfully
\n
"
,
color
.
GreenString
(
"✔"
),
plugin
.
Id
)
log
ger
.
Infof
(
"%s Installed %s successfully
\n
"
,
color
.
GreenString
(
"✔"
),
plugin
.
Id
)
/* Enable once we need support for downloading depedencies
res, _ := s.ReadPlugin(pluginFolder, pluginName)
...
...
@@ -172,7 +171,7 @@ func downloadFile(pluginName, filePath, url string) (err error) {
src
,
err
:=
zf
.
Open
()
if
err
!=
nil
{
log
.
Errorf
(
"Failed to extract file: %v"
,
err
)
log
ger
.
Errorf
(
"Failed to extract file: %v"
,
err
)
}
io
.
Copy
(
dst
,
src
)
...
...
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