Skip to content
Myr

fix bug with PersistentPreRunE

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Viktor Stanchev · committed by Viktor Stanchev · parent 046a673 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:command.go+1 added-1 removed
520 unmodified lines
521 argWoFlags := c.Flags().Args()522523 for p := c; p != nil; p = p.Parent() {524 if p.PersistentPreRunE != nil {525 if err := p.PersistentPostRunE(c, argWoFlags); err != nil {525 if err := p.PersistentPreRunE(c, argWoFlags); err != nil {526 return err527 }528 break529 } else if p.PersistentPreRun != nil {
630 unmodified lines