-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/libMethods and functions that exist in the cobra library and consumed by usersMethods and functions that exist in the cobra library and consumed by userskind/bugA bug in cobra; unintended behaviorA bug in cobra; unintended behavior
Milestone
Description
Hello there. I am playing around with a command that defines a PersistentPreRun
. This command has a sub command. This sub command as well wants to use PersistentPreRun
. When the root command is executed its PersistentPreRun
is executed as expected. When executing the sub command I expected both PersistentPreRun
s to be executed, but only the sub command's PersistentPreRun
is executed. I expect this as a bug. What do you guys think? Thanks for listening.
WGH-, kurtpeek, mykter, mateimicu, brianstrauch and 14 more
Metadata
Metadata
Assignees
Labels
area/libMethods and functions that exist in the cobra library and consumed by usersMethods and functions that exist in the cobra library and consumed by userskind/bugA bug in cobra; unintended behaviorA bug in cobra; unintended behavior