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

Function truthy

packages/core/src/flag/flag.ts:3–6  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1import { Config } from "effect"
2
3export function truthy(key: string) {
4 const value = process.env[key]?.toLowerCase()
5 return value === "true" || value === "1"
6}
7
8const copy = process.env["OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT"]
9const fff = process.env["OPENCODE_DISABLE_FFF"]

Callers 5

websearch.tsFile · 0.90
enabledByExperimentalFunction · 0.85
flag.tsFile · 0.85
OPENCODE_PUREFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected