40 Commits

Author SHA1 Message Date
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
d2f2c3f220 Fix spelling of your and you're 2018-09-25 12:38:02 +02:00
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
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
ee623e2091 Grafana-CLI: mention the plugins directory is not writable on failure 2018-04-15 13:44:59 -04:00
b099f0309f cli: download latest dependency by default 2018-02-16 09:54:37 +01:00
5bbe047eaa Revert "removes dependencies install for plugins"
This reverts commit 47e363ea157142fbd9b9912b29091dcb5bb085eb.
2018-02-16 09:49:29 +01:00
47e363ea15 removes dependencies install for plugins
this features was never intended for production.
2018-02-14 15:40:42 +01:00
e978bfc368 Added --pluginUrl option to grafana-cli for local network plugin installation 2017-09-15 20:34:08 +02:00
3f00834f25 tech: remove unused dependencies 2016-09-19 15:21:53 +02:00
3c966caa23 feat(cli): download all plugin dependencies 2016-09-15 14:38:11 +02:00
07be2c89a3 tech(cli): lets use the fact that we have a compiler 2016-06-26 03:47:15 +02:00
6de1399cf0 fix(cli): fixes broken import 2016-06-03 12:35:17 +02:00
15aeb4aec2 tech(cli): rename log to logger to separate from server logger 2016-06-03 12:22:30 +02:00
07b13e24fa style(cli): add some color to error messages 2016-04-23 14:39:42 +02:00
0855f51436 feat(cli): improves defer error handling 2016-04-23 14:39:42 +02:00
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
ff22f43002 fix(cli): fixes missplaced % 2016-04-19 14:46:03 +02:00
d38d4efc18 style(cli): improve logging to find install crash 2016-04-19 10:39:55 +02:00
a8c68e33db feat(cli): add more logging for failed install 2016-04-19 10:22:02 +02:00
903d1b7797 tech(cli): dont use defer statements in loops 2016-04-19 09:13:58 +02:00
676e950fa3 fix(cli): improve error message for not using sudo
closes #4562
2016-04-05 15:37:09 +02:00
1e44ee9e9b feat(grafana-cli): minor changes 2016-03-28 21:42:26 +02:00
1a11f1e8c6 Merge branch 'master' into cli_colors 2016-03-16 14:17:35 +01:00
8e70e9c1c3 feat(cli): improve error message for missing permission 2016-03-13 11:29:43 +01:00
740478344b Merge branch 'master' into cli_colors 2016-03-11 14:43:12 +01:00
f5bb2b11e5 feat(cli): improve error handling for missing plugin dir 2016-03-11 14:11:25 +01:00
95de5f6fe1 feat(cli): adds some amazing colors 2016-03-10 17:33:44 +01:00
788aafff3c feat(cli): disable dependecy downloads until needed 2016-03-10 17:16:01 +01:00
fee0745e98 feat(cli): support for asking grafana net about plugins 2016-03-10 16:25:34 +01:00
95f3e52064 feat(cli): use commandline object all the way 2016-03-08 14:54:18 +01:00
2fcb8b849e style(cli): fixed typos 2016-03-08 14:30:25 +01:00
d7a72e30c0 gofmt 2016-03-08 13:29:42 +01:00
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
7ef62d28a5 feat(cli): add logging to catch panics 2016-03-07 16:11:28 +01:00
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
4131d8b57a feat(cli): add command for upgrading one plugin 2016-02-16 08:49:27 +01:00
746257710b fix(cli): align code with core grafana 2016-02-15 16:11:37 +01:00
5adac86b43 fix(cli): remove dev text values 2016-02-15 14:19:59 +01:00
d59beec354 feat(cli): move cli into main repo 2016-02-15 14:09:34 +01:00