MCPcopy Index your code
hub / github.com/docker/docker-agent / statusToString

Function statusToString

pkg/tools/builtin/shell/shell.go:223–228  ·  view source on GitHub ↗
(status int32)

Source from the content-addressed store, hash-verified

221}
222
223func statusToString(status int32) string {
224 if s, ok := statusStrings[status]; ok {
225 return s
226 }
227 return "unknown"
228}
229
230func (h *shellHandler) RunShell(ctx context.Context, params RunShellArgs) (*tools.ToolCallResult, error) {
231 if strings.TrimSpace(params.Cmd) == "" {

Callers 3

ListBackgroundJobsMethod · 0.85
ViewBackgroundJobMethod · 0.85
StopBackgroundJobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected