Merge branch 'v2' into v2-completion

This commit is contained in:
lewo
2016-09-01 09:35:02 +02:00
committed by GitHub
23 changed files with 671 additions and 73 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, ShellComplete, OnUsageError, Before, CommandNotFound, Action, After, SubCommand int
}