Documentation ¶
Index ¶
- type Available
- func (a *Available) Add(bufCmd string, cmd *cobra.Command) error
- func (a *Available) Cmd() *cobra.Command
- func (a *Available) Commands() []*cobra.Command
- func (a *Available) Encode(w io.Writer) error
- func (a *Available) Listen(fn func(e events.Event) error) error
- func (a *Available) ListenFor(rx string, fn func(e events.Event) error) error
- func (a *Available) Mount(cmd *cobra.Command)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Available ¶
type Available struct {
// contains filtered or unexported fields
}
Available used to manage all of the available commands for the plugin
func NewAvailable ¶
func NewAvailable() *Available
NewAvailable returns a fully formed Available type
func (*Available) Add ¶
Add a new command to this list of available ones. The bufCmd should corresponding buffalo command that command should live below.
Special "commands":
"root" - is the `buffalo` command "events" - listens for emitted events
func (*Available) Listen ¶
Listen adds a command for github.com/gobuffalo/events. This will listen for ALL events. Use ListenFor to listen to a regex of events.
Click to show internal directories.
Click to hide internal directories.