MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / limitStrings

Function limitStrings

tools/builtin.go:1712–1717  ·  view source on GitHub ↗
(values []string, limit int)

Source from the content-addressed store, hash-verified

1710 return -1, fmt.Sprintf("Error: Command timed out after %ss.\n\nCommand: %s", formatPythonFloatSeconds(timeout), originalCommand)
1711 }
1712 cmdCtx, cancel := context.WithTimeout(ctx, timeout)
1713 defer cancel()
1714 cmd := exec.CommandContext(cmdCtx, argv[0], argv[1:]...)
1715 cmd.Dir = cwd
1716 bashpkg.PrepareProcessGroup(cmd)
1717 var stdout, stderr bytes.Buffer
1718 cmd.Stdout = &stdout
1719 cmd.Stderr = &stderr
1720 err := cmd.Start()

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected