mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
fix linting
This commit is contained in:
parent
41b8340b2b
commit
0d550c15a8
2 changed files with 5 additions and 5 deletions
8
cobra.go
8
cobra.go
|
@ -43,10 +43,10 @@ var initializers []func()
|
||||||
var finalizers []func()
|
var finalizers []func()
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultPrefixMatching = false
|
defaultPrefixMatching = false
|
||||||
defaultCommandSorting = true
|
defaultCommandSorting = true
|
||||||
defaultCaseInsensitive = false
|
defaultCaseInsensitive = false
|
||||||
defaultTraverseRunHooks = false
|
defaultTraverseRunHooks = false
|
||||||
defaultErrorOnUnknownSubcommand = false
|
defaultErrorOnUnknownSubcommand = false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ func preExecHook(c *Command) {
|
||||||
time.Sleep(MousetrapDisplayDuration)
|
time.Sleep(MousetrapDisplayDuration)
|
||||||
} else {
|
} else {
|
||||||
c.Println("Press return to continue...")
|
c.Println("Press return to continue...")
|
||||||
fmt.Scanln()
|
_, _ = fmt.Scanln()
|
||||||
}
|
}
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue