Allow the before and after hooks to be skipped #3824
Labels
contributions-requested
Requesting contributions from the community
enhancement
New feature or request
preserved
Preserved issues never go stale
Describe the enhancement
Add a new property to the
before_hook
andafter_hook
to allow it to be skipped. Suggested name isif
Additional context
The current method I am using for getting a similar outcome is to add a ternary to the
execute
and run the commands or a set of "do nothing" commands. It would be nice to save the execution time and just completely avoid having to run anything if the condition isfalse
Default it to
true
to preserve current behaviorPoC (Proof of Concept)
Including a PoC can help others understand the feature better and implement it faster.
RFC Not Needed
The text was updated successfully, but these errors were encountered: