switch to dep and integrate cobra

This commit is contained in:
Dominic Breuker
2018-02-13 10:00:38 +01:00
parent 56f706b7e2
commit c92dd9992f
88 changed files with 12470 additions and 2288 deletions

20
vendor/github.com/spf13/cobra/command_win.go generated vendored Normal file
View File

@@ -0,0 +1,20 @@
// +build windows
package cobra
import (
"os"
"time"
"github.com/inconshreveable/mousetrap"
)
var preExecHookFn = preExecHook
func preExecHook(c *Command) {
if MousetrapHelpText != "" && mousetrap.StartedByExplorer() {
c.Print(MousetrapHelpText)
time.Sleep(5 * time.Second)
os.Exit(1)
}
}