WithError sets the error for the output.
(err error)
| 61 | |
| 62 | // WithError sets the error for the output. |
| 63 | func WithError(err error) OutputOpt { |
| 64 | return func(o *Output) { |
| 65 | o.Error = err |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // Event represents an event related to command execution. |
| 70 | type Event interface { |
no outgoing calls
no test coverage detected