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
5adac86b
Commit
5adac86b
authored
Feb 15, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cli): remove dev text values
parent
d59beec3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
pkg/cmd/grafana-cli/commands/commands.go
+2
-2
pkg/cmd/grafana-cli/commands/install_command.go
+2
-3
pkg/cmd/grafana-cli/main.go
+5
-5
No files found.
pkg/cmd/grafana-cli/commands/commands.go
View file @
5adac86b
...
...
@@ -22,7 +22,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
var
Commands
=
[]
cli
.
Command
{
{
Name
:
"install"
,
Usage
:
"installs
stuff
"
,
Usage
:
"installs
a plugin
"
,
Action
:
runCommand
(
installCommand
),
},
{
Name
:
"list-remote"
,
...
...
@@ -42,7 +42,7 @@ var Commands = []cli.Command{
Action
:
runCommand
(
lsCommand
),
},
{
Name
:
"remove"
,
Usage
:
"removes
stuff
"
,
Usage
:
"removes
installed plugin
"
,
Action
:
runCommand
(
removeCommand
),
},
}
pkg/cmd/grafana-cli/commands/install_command.go
View file @
5adac86b
...
...
@@ -77,10 +77,9 @@ func InstallPlugin(pluginName, pluginFolder, version string) error {
res
:=
services
.
ReadPlugin
(
pluginFolder
,
pluginName
)
for
_
,
v
:=
range
res
.
Dependency
.
Plugins
{
log
.
Infof
(
"
Depends on %s install!
\n
"
,
v
.
Id
)
log
.
Infof
(
"
Installing Dependency: %s
\n
"
,
v
.
Id
)
//Todo: uncomment this code once the repo is more correct.
//InstallPlugin(v.Id, pluginFolder, "")
InstallPlugin
(
v
.
Id
,
pluginFolder
,
""
)
}
return
err
...
...
pkg/cmd/grafana-cli/main.go
View file @
5adac86b
...
...
@@ -11,14 +11,14 @@ import (
)
func
getGrafanaPluginPath
()
string
{
//TODO: try to get path from os:env GF_PLUGIN_FOLDER
os
:=
runtime
.
GOOS
if
os
==
"linux"
{
if
os
==
"windows"
{
return
"C:
\\
opt
\\
grafana
\\
plugins"
}
else
{
return
"/var/lib/grafana/plugins"
}
else
if
os
==
"windows"
{
return
"C:
\\
opt
\\
grafana
\\
plugins"
// :&
}
return
"tmp_do/"
//based on your OS!
}
func
main
()
{
...
...
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