Switch from kingpin to cobra

This enables easier use of sub-commands for flexibility
This commit is contained in:
2018-07-08 02:57:33 +01:00
parent 6883984950
commit 85cf2ac225
109 changed files with 9858 additions and 15045 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)
}
}