info

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 5 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 (cmd *Cmd) Description() string

func (*Cmd) Flags

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

func (*Cmd) Main

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

Main implements the `buffalo info` command. Buffalo's checks are run first, then any plugins that implement plugins.Informer will be run in order at the end.

func (*Cmd) PluginName

func (cmd *Cmd) PluginName() string

func (*Cmd) PrintFlags

func (cmd *Cmd) PrintFlags(w io.Writer) error

func (*Cmd) ScopedPlugins

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

func (*Cmd) WithPlugins

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

type Informer

type Informer interface {
	plugins.Plugin
	Info(ctx context.Context, root string, args []string) error
}

Informer can be implemented to add more checks to `buffalo info`

Jump to

Keyboard shortcuts

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