buffalo-plugins

A plugin for working with Buffalo plugins.

  • 所有者: gobuffalo/buffalo-plugins
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

buffalo-plugins

DEPRECATED
As of Buffalo v0.14.6 this plugin has been merged into Buffalo. This plugin will no longer be updated or needed.

A plugin for working with Buffalo plugins.

Installation

$ go get -u -v github.com/gobuffalo/buffalo-plugins

Generating a New Buffalo Plugin

$ buffalo generate plugin --help

Listing Currently Installed Plugins

$ buffalo plugins list

Managing Plugins

buffalo plugins install pkg pkg pkg...
buffalo plugins remove pkg pkg pkg...

Plugins can be configured via the ./config/buffalo-plugins.toml file that acts as the official list of plugins the application depends on. This is file is optional, until using the install and remove commands.

With no config file the output of buffalo plugins list and plugins.List() does not change. Once a configuration file is in place, then that file will dictate the output of those commands.

$ buffalo plugins list

Bin, Command, Description
---, ---, ---
buffalo-auth, buffalo generate auth, Generates a full auth implementation
buffalo-pop, buffalo db, [DEPRECATED] please use `buffalo pop` instead.
buffalo-goth, buffalo generate goth-auth, Generates a full auth implementation use Goth
buffalo-goth, buffalo generate goth, generates a actions/auth.go file configured to the specified providers.
buffalo-heroku, buffalo heroku, helps with heroku setup and deployment for buffalo applications
buffalo-pop, buffalo destroy model, Destroys model files.
buffalo-plugins, buffalo generate plugin, generates a new buffalo plugin
buffalo-plugins, buffalo plugins, tools for working with buffalo plugins
buffalo-pop, buffalo pop, A tasty treat for all your database needs
buffalo-trash, buffalo trash, destroys and recreates a buffalo app
buffalo-upgradex, buffalo upgradex, updates Buffalo and/or Pop/Soda as well as your app

To add support for the plugin manager, one can either manually edit ./config/buffalo-plugins.toml or let buffalo plugins install create it for you.

$ buffalo plugins install

go get github.com/gobuffalo/buffalo-pop
./config/buffalo-plugins.toml
$ cat ./config/buffalo-plugins.toml


  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"
$ buffalo plugins list

Bin, Command, Description
---, ---, ---
buffalo-pop, buffalo db, [DEPRECATED] please use `buffalo pop` instead.
buffalo-pop, buffalo destroy model, Destroys model files.
buffalo-pop, buffalo pop, A tasty treat for all your database needs

The buffalo-pop plugin was automatically added because the application in this example is a Buffalo application that uses Pop.

New plugins can be install in bulk with the install command

$ buffalo plugins install github.com/markbates/buffalo-trash github.com/gobuffalo/buffalo-heroku

go get github.com/gobuffalo/buffalo-heroku
go get github.com/gobuffalo/buffalo-pop
go get github.com/markbates/buffalo-trash
./config/buffalo-plugins.toml
$ buffalo plugins list

Bin, Command, Description
---, ---, ---
buffalo-pop, buffalo db, [DEPRECATED] please use `buffalo pop` instead.
buffalo-heroku, buffalo heroku, helps with heroku setup and deployment for buffalo applications
buffalo-pop, buffalo destroy model, Destroys model files.
buffalo-pop, buffalo pop, A tasty treat for all your database needs
buffalo-trash, buffalo trash, destroys and recreates a buffalo app
$ cat ./config/buffalo-plugins.toml


  binary = "buffalo-heroku"
  go_get = "github.com/gobuffalo/buffalo-heroku"


  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"


  binary = "buffalo-trash"
  go_get = "github.com/markbates/buffalo-trash"

Finally plugins can be removed with the remove command. This only removes them from the config file, not from the users system.

$ buffalo plugins remove github.com/gobuffalo/buffalo-heroku

./config/buffalo-plugins.toml
$ cat ./config/buffalo-plugins.toml


  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"


  binary = "buffalo-trash"
  go_get = "github.com/markbates/buffalo-trash"
$ buffalo plugins list

Bin, Command, Description
---, ---, ---
buffalo-pop, buffalo db, [DEPRECATED] please use `buffalo pop` instead.
buffalo-pop, buffalo destroy model, Destroys model files.
buffalo-pop, buffalo pop, A tasty treat for all your database needs
buffalo-trash, buffalo trash, destroys and recreates a buffalo app

Listening for Plugin Setup Instructions

In Buffalo v0.13.1-beta.1 events are now emitted with the buffalo setup command. The buffalo-plugins command will listen for this event and install the necessary plugins for an application. When completed it will emit the plugins.EvtSetupFinished event. This event should be listened to by other plugins to run their setup commands.

主要指标

概览
名称与所有者gobuffalo/buffalo-plugins
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2018-07-15 20:38:42
推送于2019-06-14 15:52:09
最后一次提交2019-06-14 11:52:01
发布数54
最新版本名称v1.15.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数16
关注者数10
派生数2
提交数193
已启用问题?
问题数4
打开的问题数0
拉请求数13
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?