Arve Knudsen
5070f7a75b
Chore: Start harmonizing linting with plugin SDK ( #25854 )
...
* Chore: Harmonize linting with plugin SDK
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-29 14:08:32 +02:00
Arve Knudsen
084542a006
Chore: Consolidate on golangci-lint ( #25834 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-26 08:46:08 +02:00
Carl Bergquist
766d8a5888
avoid aliased import in cli ( #22566 )
2020-03-04 13:18:13 +01:00
Arve Knudsen
eb98d9c15b
grafana-cli: Upgrade to urfave/cli v2 ( #22402 )
...
* grafana-cli: Upgrade to urfave/cli v2
2020-02-26 12:27:31 +01:00
Marcus Efraimsson
79c0fa4ca5
CLI: Return error and aborts when plugin file extraction fails ( #20849 )
...
Return error and aborts when plugin file extraction fails.
If file is in use, a somewhat user-friendly message is returned.
Fixes #20841
2019-12-04 12:48:40 +01:00
Olivier Lemasle
b4712ec4b9
CLI: Reduce memory usage for plugin installation ( #19639 )
...
* grafana-cli: use tmp file when downloading plugin install file
2019-11-06 13:42:58 +01:00
Arve Knudsen
573e78feeb
pkg/cmd: Check errors ( #19700 )
...
* pkg/cmd: Check errors
* pkg/cmd: Make sure server waits on services, even in case of error
* pkg/cmd: Inform of error to show help
* pkg/cmd: Only warn on failure to send systemd notification
* pkg/cmd: Don't log errors stemming from context cancelation
* pkg/cmd: Don't fail if unable to write to systemd
2019-10-15 16:44:15 +02:00
Andrej Ocenas
3866814ea9
CLI: Fix version selection for plugin install ( #19498 )
2019-09-30 15:34:09 +02:00
Marcus Efraimsson
2acffbeb10
CLI: Fix installing plugins on windows ( #19061 )
...
Fixes #19022
2019-09-13 18:12:52 +02:00
Andrej Ocenas
8c49d27705
CLI: Allow installing custom binary plugins ( #17551 )
...
Make sure all data is sent to API to be able to select correct archive version.
2019-07-29 10:44:58 +02:00
Ryan McKinley
81ff856568
grafana-cli: allow installing plugins from a local zip file ( #18021 )
2019-07-10 00:40:33 -07:00
Andrej Ocenas
151b24b95f
CLI: Add command to migrate all datasources to use encrypted password fields ( #17118 )
...
closes : #17107
2019-05-27 10:47:21 +02:00
Oleg Gaidarenko
c1289b308f
Chore: revise some of the gosec rules ( #16713 )
2019-05-01 11:36:02 +02:00
Oleg Gaidarenko
54c1bf0cc9
Chore: a bit of spring cleaning ( #16710 )
...
* Chore: use early return technic everywhere
And enable "indent-error-flow" revive rule
* Chore: remove if-return rule from revive config
* Chore: improve error messages
And enable "error-strings" revive rule
* Chore: enable "error-naming" revive rule
* Chore: make linter happy
* Chore: do not duplicate gofmt execution
* Chore: make linter happy
* Chore: address the pull review comments
2019-04-23 11:24:47 +03:00
Daniel Lee
56c965e5df
cli: chmod 755 for backend plugin binaries
...
Fixes #15500 . Does a simple filename check if the binary names ends
with _linux_amd64 or _darwin_amd64 then sets the file mode to 755.
2019-02-18 15:05:34 +01:00
Axel Pirek
d2f2c3f220
Fix spelling of your and you're
2018-09-25 12:38:02 +02:00
Carl Bergquist
ee1083d9b4
cli: avoid rely on response.ContentLength ( #13120 )
...
response.ContentLength might be invalid if the http response
is chunked.
fixes #13079
2018-09-03 20:33:21 +02:00
Karsten Weiss
4d6386e97b
Use fmt.Errorf() (gosimple)
...
This fixes:
pkg/cmd/grafana-cli/commands/install_command.go:36:11: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (S1028)
pkg/models/org_user.go:53:11: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (S1028)
pkg/services/notifications/mailer.go:138:16: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (S1028)
2018-04-16 21:04:57 +02:00
Matthew McGinn
ee623e2091
Grafana-CLI: mention the plugins directory is not writable on failure
2018-04-15 13:44:59 -04:00
bergquist
b099f0309f
cli: download latest dependency by default
2018-02-16 09:54:37 +01:00
bergquist
5bbe047eaa
Revert "removes dependencies install for plugins"
...
This reverts commit 47e363ea15 .
2018-02-16 09:49:29 +01:00
bergquist
47e363ea15
removes dependencies install for plugins
...
this features was never intended for production.
2018-02-14 15:40:42 +01:00
THIERRY SALLE
e978bfc368
Added --pluginUrl option to grafana-cli for local network plugin installation
2017-09-15 20:34:08 +02:00
bergquist
3f00834f25
tech: remove unused dependencies
2016-09-19 15:21:53 +02:00
bergquist
3c966caa23
feat(cli): download all plugin dependencies
2016-09-15 14:38:11 +02:00
bergquist
07be2c89a3
tech(cli): lets use the fact that we have a compiler
2016-06-26 03:47:15 +02:00
bergquist
6de1399cf0
fix(cli): fixes broken import
2016-06-03 12:35:17 +02:00
bergquist
15aeb4aec2
tech(cli): rename log to logger to separate from server logger
2016-06-03 12:22:30 +02:00
bergquist
07b13e24fa
style(cli): add some color to error messages
2016-04-23 14:39:42 +02:00
bergquist
0855f51436
feat(cli): improves defer error handling
2016-04-23 14:39:42 +02:00
bergquist
70acfb2cfd
fix(cli): adds better help text.
...
The zip lib is throwing panics sometimes when the response is malformed.
The cli will now try to download the zip file up to three times before
aborting. The cli gives a better error message and informes the user
about retrying.
closes #4651
2016-04-23 14:39:42 +02:00
bergquist
ff22f43002
fix(cli): fixes missplaced %
2016-04-19 14:46:03 +02:00
bergquist
d38d4efc18
style(cli): improve logging to find install crash
2016-04-19 10:39:55 +02:00
bergquist
a8c68e33db
feat(cli): add more logging for failed install
2016-04-19 10:22:02 +02:00
bergquist
903d1b7797
tech(cli): dont use defer statements in loops
2016-04-19 09:13:58 +02:00
bergquist
676e950fa3
fix(cli): improve error message for not using sudo
...
closes #4562
2016-04-05 15:37:09 +02:00
Torkel Ödegaard
1e44ee9e9b
feat(grafana-cli): minor changes
2016-03-28 21:42:26 +02:00
bergquist
1a11f1e8c6
Merge branch 'master' into cli_colors
2016-03-16 14:17:35 +01:00
bergquist
8e70e9c1c3
feat(cli): improve error message for missing permission
2016-03-13 11:29:43 +01:00
bergquist
740478344b
Merge branch 'master' into cli_colors
2016-03-11 14:43:12 +01:00
bergquist
f5bb2b11e5
feat(cli): improve error handling for missing plugin dir
2016-03-11 14:11:25 +01:00
bergquist
95de5f6fe1
feat(cli): adds some amazing colors
2016-03-10 17:33:44 +01:00
bergquist
788aafff3c
feat(cli): disable dependecy downloads until needed
2016-03-10 17:16:01 +01:00
bergquist
fee0745e98
feat(cli): support for asking grafana net about plugins
2016-03-10 16:25:34 +01:00
bergquist
95f3e52064
feat(cli): use commandline object all the way
2016-03-08 14:54:18 +01:00
bergquist
2fcb8b849e
style(cli): fixed typos
2016-03-08 14:30:25 +01:00
bergquist
d7a72e30c0
gofmt
2016-03-08 13:29:42 +01:00
bergquist
f397d0ddd7
fix(cli): retry download when panicing
...
Will retry to download plugins once if the zip lib panics.
closes #4068
2016-03-08 13:16:58 +01:00
bergquist
7ef62d28a5
feat(cli): add logging to catch panics
2016-03-07 16:11:28 +01:00
bergquist
f6c5242a93
feat(cli): make repo url a parameter
...
this is a quick hack to support repo url as parameter. Will refactor
later
2016-03-07 13:29:45 +01:00