diff options
Diffstat (limited to 'vendor/github.com/spf13/cobra/command_win.go')
-rw-r--r-- | vendor/github.com/spf13/cobra/command_win.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/github.com/spf13/cobra/command_win.go b/vendor/github.com/spf13/cobra/command_win.go deleted file mode 100644 index a84f5a82a..000000000 --- a/vendor/github.com/spf13/cobra/command_win.go +++ /dev/null @@ -1,27 +0,0 @@ -//go:build windows -// +build windows - -package cobra - -import ( - "fmt" - "os" - "time" - - "github.com/inconshreveable/mousetrap" -) - -var preExecHookFn = preExecHook - -func preExecHook(c *Command) { - if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { - c.Print(MousetrapHelpText) - if MousetrapDisplayDuration > 0 { - time.Sleep(MousetrapDisplayDuration) - } else { - c.Println("Press return to continue...") - fmt.Scanln() - } - os.Exit(1) - } -} |