Merge remote-tracking branch 'origin/master' into merging-from-v1

This commit is contained in:
Dan Buch
2016-08-22 14:41:56 -04:00
8 changed files with 513 additions and 19 deletions

View File

@@ -13,6 +13,19 @@ import (
"testing"
)
var (
lastExitCode = 0
fakeOsExiter = func(rc int) {
lastExitCode = rc
}
fakeErrWriter = &bytes.Buffer{}
)
func init() {
OsExiter = fakeOsExiter
ErrWriter = fakeErrWriter
}
type opCounts struct {
Total, BashComplete, OnUsageError, Before, CommandNotFound, Action, After, SubCommand int
}