Files
stash/vendor/github.com/gobuffalo/buffalo-plugins/plugins/command.go
2019-05-27 12:34:26 -07:00

22 lines
639 B
Go

package plugins
// Command that the plugin supplies
type Command struct {
// Name "foo"
Name string `json:"name"`
// UseCommand "bar"
UseCommand string `json:"use_command"`
// BuffaloCommand "generate"
BuffaloCommand string `json:"buffalo_command"`
// Description "generates a foo"
Description string `json:"description,omitempty"`
Aliases []string `json:"aliases,omitempty"`
Binary string `json:"-"`
Flags []string `json:"flags,omitempty"`
// Filters events to listen to ("" or "*") is all events
ListenFor string `json:"listen_for,omitempty"`
}
// Commands is a slice of Command
type Commands []Command