mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Fix preRunE return signature
This commit is contained in:
parent
380782a995
commit
77f5b8b4ec
1 changed files with 1 additions and 1 deletions
|
@ -798,7 +798,7 @@ func (c *Command) preRun() {
|
|||
}
|
||||
}
|
||||
|
||||
func (c *Command) preRunE() {
|
||||
func (c *Command) preRunE() error {
|
||||
for _, x := range initializersWithError {
|
||||
err := x()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue