Skip to content

Commit

Permalink
Add <direct_url> help
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayu36 committed Mar 9, 2018
1 parent 8f56a82 commit 4fbef47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ var commandPluginInstall = cli.Command{
Install from plugin registry.
You can find available plugins in https://github.com/mackerelio/plugin-registry
Example: mkr plugin install mackerel-plugin-sample
- <direct_url>
Install from specified URL.
Supported URL schemes are http, https and file.
Example: mkr plugin install https://github.com/mackerelio/mackerel-plugin-sample/releases/download/v0.0.3/mackerel-plugin-sample_linux_amd64.zip
The installer uses Github API to find the latest release. Please set a github token to
GITHUB_TOKEN environment variable, or to github.token in .gitconfig.
Expand Down
2 changes: 2 additions & 0 deletions plugin/install_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ var (
// - mackerelio/mackerel-plugin-sample
// - mackerel-plugin-sample
// - mackerelio/mackerel-plugin-sample@v0.0.1
// - https://mackerel.io/mackerel-plugin-sample_linux_amd64.zip
// - file:///path/to/mackerel-plugin-sample_linux_amd64.zip
func newInstallTargetFromString(target string) (*installTarget, error) {
if urlReg.MatchString(target) {
return &installTarget{
Expand Down

0 comments on commit 4fbef47

Please sign in to comment.