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

Function bool

packages/opencode/src/effect/runtime-flags.ts:4–4  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

2import { ConfigService } from "@/effect/config-service"
3
4const bool = (name: string) => Config.boolean(name).pipe(Config.withDefault(false))
5const positiveInteger = (name: string) =>
6 Config.number(name).pipe(
7 Config.map((value) => (Number.isInteger(value) && value > 0 ? value : undefined)),

Callers 2

runtime-flags.tsFile · 0.85
ServiceClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected