cli/command/testing.go
2019-11-01 23:20:15 +01:00

14 lines
229 B
Go

package command
// outputStub implements a simple utils.Runnable
type outputStub struct {
output []byte
}
func (s outputStub) Output() ([]byte, error) {
return s.output, nil
}
func (s outputStub) Run() error {
return nil
}