9 "github.com/inconshreveable/mousetrap"
12 var preExecHookFn = preExecHook
14 // enables an information splash screen on Windows if the CLI is started from explorer.exe.
15 var MousetrapHelpText string = `This is a command line tool
17 You need to open cmd.exe and run it from there.
20 func preExecHook(c *Command) {
21 if mousetrap.StartedByExplorer() {
22 c.Print(MousetrapHelpText)
23 time.Sleep(5 * time.Second)