github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/cmds/generate/ifaces.go (about) 1 package generate 2 3 import ( 4 "context" 5 6 "github.com/gobuffalo/plugins" 7 "github.com/gobuffalo/plugins/plugio" 8 ) 9 10 // Generator is a sub-command of buffalo generate. 11 // buffalo generate model 12 type Generator interface { 13 plugins.Plugin 14 Generate(ctx context.Context, root string, args []string) error 15 } 16 17 type Namer interface { 18 Generator 19 CmdName() string 20 } 21 22 type Aliaser interface { 23 Generator 24 CmdAliases() []string 25 } 26 27 type Stdouter = plugio.Outer