Skip to content

Commit

Permalink
Merge pull request #1 from SamMorrowDrums/plugins
Browse files Browse the repository at this point in the history
Require plugin name
  • Loading branch information
Jeff Dickey committed Jan 21, 2015
2 parents e307763 + 4988b51 commit 64bd379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ var pluginsInstallCmd = &Command{

Run: func(ctx *Context) {
name := ctx.Args["name"]
if len(name) == 0 {
Errln("Must specify a plugin name")
return
}
Errf("Installing plugin %s... ", name)
must(node.InstallPackage(name))
plugin := getPlugin(name)
Expand Down

0 comments on commit 64bd379

Please sign in to comment.