MCPcopy
hub / github.com/wavetermdev/waveterm / StopBuilderCommand

Method StopBuilderCommand

pkg/wshrpc/wshserver/wshserver.go:1153–1162  ·  view source on GitHub ↗
(ctx context.Context, builderId string)

Source from the content-addressed store, hash-verified

1151}
1152
1153func (ws *WshServer) StopBuilderCommand(ctx context.Context, builderId string) error {
1154 if builderId == "" {
1155 return fmt.Errorf("must provide a builderId to StopBuilderCommand")
1156 }
1157 bc := buildercontroller.GetController(builderId)
1158 if bc == nil {
1159 return nil
1160 }
1161 return bc.Stop()
1162}
1163
1164func (ws *WshServer) RestartBuilderAndWaitCommand(ctx context.Context, data wshrpc.CommandRestartBuilderAndWaitData) (*wshrpc.RestartBuilderAndWaitResult, error) {
1165 if data.BuilderId == "" {

Callers

nothing calls this directly

Calls 2

GetControllerFunction · 0.92
StopMethod · 0.65

Tested by

no test coverage detected