fix

package
v2.0.0-alpha.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plugins

func Plugins() []plugins.Plugin

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func (*Cmd) Description

func (fc *Cmd) Description() string

func (*Cmd) Flags

func (cmd *Cmd) Flags() *pflag.FlagSet

func (*Cmd) Main

func (fc *Cmd) Main(ctx context.Context, root string, args []string) error

func (*Cmd) PluginName

func (fc *Cmd) PluginName() string

func (*Cmd) ScopedPlugins

func (fc *Cmd) ScopedPlugins() []plugins.Plugin

func (Cmd) String

func (f Cmd) String() string

func (*Cmd) SubCommands

func (fc *Cmd) SubCommands() []plugins.Plugin

func (*Cmd) WithPlugins

func (fc *Cmd) WithPlugins(f plugins.Feeder)

type Fixer

type Fixer interface {
	Fix(ctx context.Context, root string, args []string) error
}

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 Flagger

type Flagger interface {
	plugins.Plugin
	FixFlags() []*flag.Flag
}

type Pflagger

type Pflagger interface {
	plugins.Plugin
	FixFlags() []*pflag.Flag
}

type Stdouter

type Stdouter = plugio.Outer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL