Merge remote-tracking branch 'origin/master' into issue-update

This commit is contained in:
Corey Johnson 2019-11-18 11:09:00 -08:00
parent 75a3496bf1
commit e5af5be940
23 changed files with 1354 additions and 65 deletions

View file

@ -1,6 +1,8 @@
package command
import (
"errors"
"github.com/github/gh-cli/api"
"github.com/github/gh-cli/context"
)
@ -34,3 +36,15 @@ func (s outputStub) Output() ([]byte, error) {
func (s outputStub) Run() error {
return nil
}
type errorStub struct {
message string
}
func (s errorStub) Output() ([]byte, error) {
return nil, errors.New(s.message)
}
func (s errorStub) Run() error {
return errors.New(s.message)
}