MCPcopy Create free account
hub / github.com/github/gh-aw / isBashTool

Function isBashTool

pkg/cli/audit_diff.go:590–593  ·  view source on GitHub ↗

isBashTool returns true if the tool name represents a bash/shell invocation. It matches the generic "bash" / "Bash" tool names used by most engines and the per-command "bash_*" entries generated by the Codex log parser.

(name string)

Source from the content-addressed store, hash-verified

588// It matches the generic "bash" / "Bash" tool names used by most engines and the
589// per-command "bash_*" entries generated by the Codex log parser.
590func isBashTool(name string) bool {
591 lower := strings.ToLower(name)
592 return lower == "bash" || strings.HasPrefix(lower, "bash_") //nolint:tolowerequalfold
593}
594
595// computeToolCallsDiff diffs engine-level tool calls from two LogMetrics values.
596// Returns nil when both metrics have no tool call data.

Callers 1

computeToolCallsDiffFunction · 0.85

Calls 1

ToLowerMethod · 0.80

Tested by

no test coverage detected