mirror of
https://github.com/coreos/mantle.git
synced 2026-02-05 18:45:05 +01:00
cobra's PersistentPreRun's are designed such that each new one overrides all parent ones. We're using a PersistentPreRun to setup logging though, and clearly want that to cascade all the way. This adds a small helper function so each override is done by pushing a new function onto a stack rather than by replacing the previous one.