github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/cmds/setup/ifaces_test.go (about) 1 package setup 2 3 import "context" 4 5 var _ BeforeSetuper = beforeSetuper(nil) 6 7 type beforeSetuper func(ctx context.Context, root string, args []string) error 8 9 func (b beforeSetuper) PluginName() string { 10 return "before-setuper" 11 } 12 13 func (b beforeSetuper) BeforeSetup(ctx context.Context, root string, args []string) error { 14 return b(ctx, root, args) 15 }