-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend Persistent*Run to allow multiple hooks
Supersedes: PR #1123 Resolves: #252, #219 Related PR's: #714, #220 - Introduces On*Run() methods to register hooks - Introduces OnPersistent*Run() methods to register hooks that are always executed (childs not overriding parents). - Allows to register multiple *Run hooks - Keeps current Persistent*Run behavior unaffected (childs still override parents when set as a property) - Introduces EnablePersistentRunOverride option to control if child Persistent*Run hooks should override their parent's hooks Merge spf13/cobra#1142
- Loading branch information
1 parent
da6f963
commit a21be02
Showing
3 changed files
with
241 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters