(ctx context.Context, builderId string)
| 1190 | } |
| 1191 | |
| 1192 | func (ws *WshServer) GetBuilderStatusCommand(ctx context.Context, builderId string) (*wshrpc.BuilderStatusData, error) { |
| 1193 | if builderId == "" { |
| 1194 | return nil, fmt.Errorf("must provide a builderId to GetBuilderStatusCommand") |
| 1195 | } |
| 1196 | bc := buildercontroller.GetOrCreateController(builderId) |
| 1197 | status := bc.GetStatus() |
| 1198 | return &status, nil |
| 1199 | } |
| 1200 | |
| 1201 | func (ws *WshServer) GetBuilderOutputCommand(ctx context.Context, builderId string) ([]string, error) { |
| 1202 | if builderId == "" { |
nothing calls this directly
no test coverage detected