1
0
mirror of https://github.com/coreos/mantle.git synced 2026-02-05 18:45:05 +01:00

11 Commits

Author SHA1 Message Date
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
Michael Marineau
33409f6484 cli: re-add --log-level command line option 2016-10-26 15:30:25 -07:00
Michael Marineau
e43d162e8b Godeps: remove import path prefix 2016-07-12 23:15:29 -07:00
Michael Marineau
d42c4a46b9 cli: silence etcd messages at default log level 2016-04-22 12:54:26 -07:00
Nick Owens
3948cc54f8 cli: fix golint complaints 2015-11-14 15:22:22 -08:00
Michael Marineau
d46beb2c9d system/exec: add support for easily running code in helper subprocesses.
This code was lovingly ripped off from rkt and adapted to support
running subprocesses via sudo.
2015-11-04 16:05:00 -08:00
Michael Marineau
c9c26119a4 cli: convert to spf13/cobra library
This is a direct conversion, there may now be better ways to organize
things but any such cleanups will come later.
2015-07-01 16:35:12 -07:00
Michael Marineau
64aa9d6094 Godeps: vendor capnslog 2015-06-02 15:26:14 -07:00
Michael Marineau
32e15a605a cli: add log-level option using capnslog 2015-06-01 13:08:50 -07:00
Michael Marineau
a357a2001c *: change license header to line comments
This switch was recently made to most of our other go projects.
2015-02-12 12:33:02 -08:00
Michael Marineau
96d1e1f398 cli: add cli subcommand package
Based on the rocket subcommand handling code with some tweaks:
 - Use the default flag set so global flags work normally.
 - Allow global flags both before and after the subcommand.
 - Generalize a little so multiple cli utilities can be implemented.
2014-12-29 10:44:50 -08:00