Update dependencies

This commit is contained in:
Zlatko Čalušić
2017-07-19 22:18:06 +02:00
parent 0e5f662fed
commit cae51e1478
7 changed files with 87 additions and 47 deletions

View File

@@ -11,14 +11,8 @@ import (
var preExecHookFn = preExecHook
// enables an information splash screen on Windows if the CLI is started from explorer.exe.
var MousetrapHelpText string = `This is a command line tool
You need to open cmd.exe and run it from there.
`
func preExecHook(c *Command) {
if mousetrap.StartedByExplorer() {
if MousetrapHelpText != "" && mousetrap.StartedByExplorer() {
c.Print(MousetrapHelpText)
time.Sleep(5 * time.Second)
os.Exit(1)