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

Method RunContext

pkg/command/static.go:73–86  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

71}
72
73func (rg *Static) RunContext(ctx context.Context) Output {
74 rg.broadcast(NewEventStart(ctx, TypeRun))
75
76 out := NewOutput(TypeRun)
77 if rg.Resources == nil {
78 out.Error = errors.New("no resources available")
79 }
80
81 out.Resources = rg.Resources
82
83 rg.broadcast(NewEventEnd(ctx, out))
84
85 return out
86}
87
88func (rg *Static) RunOnEvent() {
89 // No events to watch for in static resources.

Callers 1

RunMethod · 0.95

Calls 4

broadcastMethod · 0.95
NewEventStartFunction · 0.85
NewOutputFunction · 0.85
NewEventEndFunction · 0.85

Tested by

no test coverage detected