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

Function useEnvShare

github/index.ts:326–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324}
325
326function useEnvShare() {
327 const value = process.env["SHARE"]
328 if (!value) return undefined
329 if (value === "true") return true
330 if (value === "false") return false
331 throw new Error(`Invalid share value: ${value}. Share must be a boolean.`)
332}
333
334function useEnvMock() {
335 return {

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected