1
0
mirror of https://github.com/coreos/mantle.git synced 2026-02-05 18:45:05 +01:00
Files
Euan Kemp f13fb5a397 cli: fix --debug flag not working
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.
2017-01-25 15:14:01 -08:00
..
2017-01-25 15:14:01 -08:00