carve out cmd, stub server impl

This commit is contained in:
Barak Michener 2018-03-28 14:29:55 -07:00
parent 51fa79ef2f
commit 90aa93a1d7
64 changed files with 10564 additions and 3 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)
}
}