-
Committer:
Tarmac
-
Author(s):
Tim Penhey
-
Date:
2014-03-26 01:45:12 UTC
-
mfrom:
(2034.1.13 default-command-info)
-
Revision ID:
tarmac-20140326014512-sgdflyh9h5xaogfh
[r=thumper] Add standard functions for command output.
Add simple function support and flags around changing how the command output
works by default. Add flag options for '-q' and '--quiet'. Also updated the text for the flags.
There are now two methods on the cmd.Context object that should be used for output:
func (ctx *Context) Infof(format string, params ...interface{})
and
func (ctx *Context) Verbosef(format string, params ...interface{})
If quiet is specified, both are logged instead of written out. If verbose is
specified, both are written out, if the defaults are used, Info is written
out, but verbose is logged.