Update go dependencies

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-27 10:34:47 -04:00
parent 2586542608
commit 6db1ed390d
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
64 changed files with 13497 additions and 11319 deletions

View file

@ -3,6 +3,7 @@
package cobra
import (
"fmt"
"os"
"time"
@ -14,7 +15,12 @@ var preExecHookFn = preExecHook
func preExecHook(c *Command) {
if MousetrapHelpText != "" && mousetrap.StartedByExplorer() {
c.Print(MousetrapHelpText)
time.Sleep(5 * time.Second)
if MousetrapDisplayDuration > 0 {
time.Sleep(MousetrapDisplayDuration)
} else {
c.Println("Press return to continue...")
fmt.Scanln()
}
os.Exit(1)
}
}