MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executePs

Method executePs

workflow/executor.go:1299–1306  ·  view source on GitHub ↗

--- Process Management Handlers --- executePs lists processes

(ctx context.Context, client *csclient.Client, beaconID string)

Source from the content-addressed store, hash-verified

1297
1298// executePs lists processes
1299func (e *Executor) executePs(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {
1300 resp, err := client.Ps(ctx, beaconID)
1301 if err != nil {
1302 return "", err
1303 }
1304
1305 return e.waitForOutput(ctx, client, resp.TaskID)
1306}
1307
1308// executeKill terminates a process by PID
1309func (e *Executor) executeKill(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected