Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFlagSet ¶ added in v0.5.0
Types ¶
type Buffalo ¶ added in v0.4.1
type Buffalo struct {
context.Context
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Plugins Plugins
// contains filtered or unexported fields
}
Buffalo represents the `buffalo` cli.
type Fixer ¶ added in v0.4.1
Fixer is an optional interface a plugin can implement to be run with `buffalo fix`. This should update the application to the current version of the plugin. The expectation is fixing of only one major revision.
type Generator ¶ added in v0.4.1
Fixer is an optional interface a plugin can implement to be run with `buffalo fix`
type Plugin ¶ added in v0.4.1
type Plugin interface {
// Name is the name of the plugin.
// This will also be used for the cli sub-command
// "pop" | "heroku" | "auth" | etc...
Name() string
}
Plugin is the most basic interface a plugin can implement.
type Plugins ¶ added in v0.4.1
type Plugins []Plugin
func (Plugins) Fix ¶ added in v0.4.1
Fix runs any Fixers that are in the Plugins. If no arguments are provided it will run all fixers in the Plugins. Otherwise Fix will run the fixers for the arguments provided.
buffalo fix buffalo fix plush pop buffalo fix -h
func (Plugins) Generate ¶ added in v0.4.1
Generate will run the specified generator.
buffalo generate -h buffalo generate pop ...
Click to show internal directories.
Click to hide internal directories.