github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/cmds/develop/ifaces.go (about) 1 package develop 2 3 import ( 4 "context" 5 "flag" 6 7 "github.com/gobuffalo/plugins" 8 "github.com/gobuffalo/plugins/plugio" 9 "github.com/spf13/pflag" 10 ) 11 12 type Developer interface { 13 plugins.Plugin 14 // Develop will be called asynchronously with other implementations. 15 // The context.Context should be listened to for cancellation. 16 Develop(ctx context.Context, root string, args []string) error 17 } 18 19 type Flagger interface { 20 plugins.Plugin 21 DevelopFlags() []*flag.Flag 22 } 23 24 type Pflagger interface { 25 plugins.Plugin 26 DevelopFlags() []*pflag.Flag 27 } 28 29 type Namer interface { 30 Developer 31 CmdName() string 32 } 33 34 type Aliaser interface { 35 Developer 36 CmdAliases() []string 37 } 38 39 type Stdouter = plugio.Outer