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

Function boolPtr

pkg/cli/mcp_helpers.go:44–44  ·  view source on GitHub ↗

boolPtr returns a pointer to the given bool value, used for optional *bool fields.

(b bool)

Source from the content-addressed store, hash-verified

42
43// boolPtr returns a pointer to the given bool value, used for optional *bool fields.
44func boolPtr(b bool) *bool { return new(b) }
45
46// logAndValidateBinaryPath determines the binary path, logs it, and validates it exists.
47// Returns the detected binary path and an error if the path cannot be determined or if the file doesn't exist.

Callers 10

registerStatusToolFunction · 0.70
registerCompileToolFunction · 0.70
registerMCPInspectToolFunction · 0.70
registerChecksToolFunction · 0.70
registerLogsToolFunction · 0.70
registerAuditToolFunction · 0.70
registerAuditDiffToolFunction · 0.70
TestBoolPtr_TrueFunction · 0.70
TestBoolPtr_FalseFunction · 0.70
TestBoolPtr_IndependenceFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestBoolPtr_TrueFunction · 0.56
TestBoolPtr_FalseFunction · 0.56
TestBoolPtr_IndependenceFunction · 0.56