generate

package
v2.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 9 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 {
	Generator
	CmdAliases() []string
}

type Cmd

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

func (*Cmd) CmdAliases

func (*Cmd) CmdAliases() []string

func (Cmd) Description

func (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 cli.Cmd and is the entry point for `buffalo generate`

func (Cmd) PluginName

func (b 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) SubCommands

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

func (*Cmd) WithPlugins

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

type Generator

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

Generator is a sub-command of buffalo generate.

buffalo generate model

func FindGenerator

func FindGenerator(name string, plugs []plugins.Plugin) Generator

func FindGeneratorFromArgs

func FindGeneratorFromArgs(args []string, plugs []plugins.Plugin) Generator

type Namer

type Namer interface {
	Generator
	CmdName() string
}

type Stdouter

type Stdouter = plugio.Outer

Jump to

Keyboard shortcuts

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