MCPcopy Create free account
hub / github.com/anomalyco/opencode / shellCommand

Function shellCommand

packages/opencode/src/acp/tool.ts:290–292  ·  view source on GitHub ↗
(input: ToolInput)

Source from the content-addressed store, hash-verified

288}
289
290function shellCommand(input: ToolInput) {
291 return stringValue(input.command) ?? stringValue(input.cmd)
292}
293
294function isShell(toolName: string) {
295 const tool = toolName.toLocaleLowerCase()

Callers 1

toolTitleFunction · 0.85

Calls 1

stringValueFunction · 0.70

Tested by

no test coverage detected