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

     1  package info
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/gobuffalo/plugins"
     7  )
     8  
     9  // Informer can be implemented to add more checks
    10  // to `buffalo info`
    11  type Informer interface {
    12  	plugins.Plugin
    13  	Info(ctx context.Context, root string, args []string) error
    14  }
    15  
    16  type Namer interface {
    17  	Informer
    18  	CmdName() string
    19  }
    20  
    21  type Aliaser interface {
    22  	Informer
    23  	CmdAliases() []string
    24  }