github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/built/ifaces.go (about)

     1  package built
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/gobuffalo/plugins"
     7  )
     8  
     9  // Initer is invoked in when an application binary
    10  // built with `buffalo build` is executed. This hook
    11  // is executed before any flags are parsed or sub-commands
    12  // are run.
    13  type Initer interface {
    14  	plugins.Plugin
    15  	BuiltInit(ctx context.Context, root string, args []string) error
    16  }