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

     1  package bzr
     2  
     3  import (
     4  	"context"
     5  	"os/exec"
     6  )
     7  
     8  // CommandRunner can be implemented to intercept the
     9  // running of a `bzr` command in any of the plugins in this package.
    10  // This can be useful for testing, logging, wrapping IO, etc...
    11  // It is expected that that plugins in this package will hand over
    12  // control of the exec.Cmd to the first plugin that implements this
    13  // interface.
    14  type Runner interface {
    15  	RunBzr(ctx context.Context, root string, cmd *exec.Cmd) error
    16  }