MCPcopy Create free account
hub / github.com/arctic-cli/interface / truthy

Function truthy

packages/arctic/src/flag/flag.ts:26–29  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

24 export const ARCTIC_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS = number("ARCTIC_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS")
25
26 function truthy(key: string) {
27 const value = process.env[key]?.toLowerCase()
28 return value === "true" || value === "1"
29 }
30
31 function number(key: string) {
32 const value = process.env[key]

Callers 1

flag.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected