MCPcopy Index your code
hub / github.com/anomalyco/opencode / normalizeShare

Function normalizeShare

packages/opencode/src/cli/cmd/github.handler.ts:672–678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670 }
671
672 function normalizeShare() {
673 const value = process.env["SHARE"]
674 if (!value) return undefined
675 if (value === "true") return true
676 if (value === "false") return false
677 throw new Error(`Invalid share value: ${value}. Share must be a boolean.`)
678 }
679
680 function normalizeUseGithubToken() {
681 const value = process.env["USE_GITHUB_TOKEN"]

Callers 1

github.handler.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected