MCPcopy Create free account
hub / github.com/MacroPower/kat / WithError

Function WithError

pkg/command/command.go:63–67  ·  view source on GitHub ↗

WithError sets the error for the output.

(err error)

Source from the content-addressed store, hash-verified

61
62// WithError sets the error for the output.
63func 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.
70type Event interface {

Callers 3

RunOnEventMethod · 0.85
flushFileEventsMethod · 0.85
RunPluginContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected