fix

package
v2.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 Aliaser

type Aliaser interface {
	Fixer
	CmdAliases() []string
}

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) SubCommands

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

func (*Cmd) WithPlugins

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

type Fixer

type Fixer interface {
	plugins.Plugin
	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.

func FindFixer

func FindFixer(name string, plugs []plugins.Plugin) Fixer

func FindFixerFromArgs

func FindFixerFromArgs(args []string, plugs []plugins.Plugin) Fixer

type Flagger

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

type Namer

type Namer interface {
	Fixer
	CmdName() string
}

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