Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewCommand(c *command.StevedoreCommand, p Consoler, l Logger, debug *bool) *command.StevedoreCommand
NewCommand is a middleware that manages errors output on commands
Types ¶
type Consoler ¶
type Consoler interface { Info(msg ...interface{}) Warn(msg ...interface{}) Error(msg ...interface{}) }
Consoler interface to show messages through console
type ErrorManagement ¶
type ErrorManagement struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.