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
5abaf26b
Commit
5abaf26b
authored
Apr 19, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(cli): remove some logging
parent
bd21a08b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
pkg/cmd/grafana-cli/commands/remove_command.go
+3
-8
No files found.
pkg/cmd/grafana-cli/commands/remove_command.go
View file @
5abaf26b
...
...
@@ -3,7 +3,7 @@ package commands
import
(
"errors"
"
github.com/grafana/grafana/pkg/cmd/grafana-cli/log
"
"
fmt
"
m
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
services
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
)
...
...
@@ -15,22 +15,17 @@ func removeCommand(c CommandLine) error {
pluginPath
:=
c
.
GlobalString
(
"pluginsDir"
)
localPlugins
:=
getPluginss
(
pluginPath
)
log
.
Info
(
"remove!
\n
"
)
plugin
:=
c
.
Args
()
.
First
()
log
.
Info
(
"plugin: "
+
plugin
+
"
\n
"
)
if
plugin
==
""
{
return
errors
.
New
(
"Missing plugin parameter"
)
}
log
.
Infof
(
"plugins :
\n
%v
\n
"
,
localPlugins
)
for
_
,
p
:=
range
localPlugins
{
if
p
.
Id
==
c
.
Args
()
.
First
()
{
log
.
Infof
(
"removing plugin %s"
,
p
.
Id
)
removePlugin
(
pluginPath
,
p
.
Id
)
return
nil
}
}
return
nil
return
fmt
.
Errorf
(
"Could not find plugin named %s"
,
c
.
Args
()
.
First
())
}
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