MCPcopy Create free account
hub / github.com/diillson/chatcli / Stop

Method Stop

cli/proc_tool_adapter.go:75–81  ·  view source on GitHub ↗

Stop implements plugins.ProcAdapter.

(id string)

Source from the content-addressed store, hash-verified

73
74// Stop implements plugins.ProcAdapter.
75func (a *procToolAdapter) Stop(id string) (string, error) {
76 info, err := a.supervisor().Stop(id)
77 if err != nil {
78 return "", err
79 }
80 return fmt.Sprintf("stopped %s (exit code %d)", info.ID, info.ExitCode), nil
81}
82
83// Remove implements plugins.ProcAdapter.
84func (a *procToolAdapter) Remove(id string) (string, error) {

Callers 1

Calls 2

supervisorMethod · 0.95
StopMethod · 0.65

Tested by 1