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

     1  package bzr
     2  
     3  import (
     4  	"context"
     5  	"os/exec"
     6  )
     7  
     8  type runner func(ctx context.Context, root string, cmd *exec.Cmd) error
     9  
    10  func (runner) PluginName() string {
    11  	return "bzr-runner"
    12  }
    13  
    14  func (r runner) RunBzr(ctx context.Context, root string, cmd *exec.Cmd) error {
    15  	return r(ctx, root, cmd)
    16  }