Verbosef logs a message if verbose mode is enabled.
(inv *serpent.Invocation, fmtStr string, args ...interface{})
| 1172 | |
| 1173 | // Verbosef logs a message if verbose mode is enabled. |
| 1174 | func (r *RootCmd) Verbosef(inv *serpent.Invocation, fmtStr string, args ...interface{}) { |
| 1175 | if r.verbose { |
| 1176 | cliui.Infof(inv.Stdout, fmtStr, args...) |
| 1177 | } |
| 1178 | } |
| 1179 | |
| 1180 | // DumpHandler provides a custom SIGQUIT and SIGTRAP handler that dumps the |
| 1181 | // stacktrace of all goroutines to stderr and a well-known file in the home |