Documentation ¶
Index ¶
- func AppendArg(args []string, name string, arg ...string) []string
- func Plugins() []plugins.Plugin
- type AfterBuilder
- type Aliaser
- type BeforeBuilder
- type BuildArger
- type Builder
- type Cmd
- func (*Cmd) CmdAliases() []string
- func (Cmd) Description() string
- func (cmd *Cmd) Flags() *pflag.FlagSet
- func (cmd *Cmd) Main(ctx context.Context, root string, args []string) error
- func (b Cmd) PluginName() string
- func (cmd *Cmd) PrintFlags(w io.Writer) error
- func (bc *Cmd) ScopedPlugins() []plugins.Plugin
- func (bc *Cmd) SubCommands() []plugins.Plugin
- func (cmd *Cmd) WithPlugins(f plugins.Feeder)
- type Flagger
- type GoBuilder
- type Importer
- type MainFile
- func (bc *MainFile) AfterBuild(ctx context.Context, root string, args []string, err error) error
- func (bc *MainFile) BeforeBuild(ctx context.Context, root string, args []string) error
- func (MainFile) HidePlugin()
- func (MainFile) PluginName() string
- func (bc *MainFile) ScopedPlugins() []plugins.Plugin
- func (bc *MainFile) Version(ctx context.Context, root string) (string, error)
- func (bc *MainFile) WithPlugins(f plugins.Feeder)
- type Namer
- type PackFiler
- type Packager
- type Pflagger
- type Stderrer
- type Stdiner
- type Stdouter
- type Versioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfterBuilder ¶
type BeforeBuilder ¶
type BuildArger ¶
type BuildArger interface { plugins.Plugin // GoBuildArgs receives the current list // and returns either the same list, or // a modified version of the arguments. // Implementations are responsible for ensuring // that the arguments returned are "valid" // arguments for the `go build` command. GoBuildArgs(ctx context.Context, root string, args []string) ([]string, error) }
type Builder ¶
type Builder interface { plugins.Plugin Build(ctx context.Context, root string, args []string) error }
Builder is a sub-command of buffalo build.
buffalo build webpack
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) CmdAliases ¶
func (Cmd) Description ¶
func (*Cmd) Flags ¶
Flags returns a defined set of flags for this command. It imports flags provided by plugins that use either the `Flagger` or `Pflagger` interfaces. Flags provided by plugins will have their shorthand ("-x") flag stripped and the name ("--some-flag") of the flag will be prefixed with the plugin's name ("--xyz-some-flag")
func (Cmd) PluginName ¶
func (*Cmd) ScopedPlugins ¶
func (*Cmd) SubCommands ¶
func (*Cmd) WithPlugins ¶
type MainFile ¶
type MainFile struct {
// contains filtered or unexported fields
}
func (*MainFile) AfterBuild ¶
func (*MainFile) BeforeBuild ¶
func (MainFile) HidePlugin ¶
func (MainFile) HidePlugin()
func (MainFile) PluginName ¶
func (*MainFile) ScopedPlugins ¶
func (*MainFile) WithPlugins ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.