2025-06-14 05:50:30 +00:00
|
|
|
export namespace Flag {
|
|
|
|
|
export const OPENCODE_AUTO_SHARE = truthy("OPENCODE_AUTO_SHARE")
|
2025-07-03 14:37:08 +00:00
|
|
|
export const OPENCODE_DISABLE_WATCHER = truthy("OPENCODE_DISABLE_WATCHER")
|
2025-07-29 15:03:11 +00:00
|
|
|
export const OPENCODE_CONFIG = process.env["OPENCODE_CONFIG"]
|
2025-08-11 01:52:52 +00:00
|
|
|
export const OPENCODE_DISABLE_AUTOUPDATE = truthy("OPENCODE_DISABLE_AUTOUPDATE")
|
2025-06-14 05:50:30 +00:00
|
|
|
|
|
|
|
|
function truthy(key: string) {
|
|
|
|
|
const value = process.env[key]?.toLowerCase()
|
|
|
|
|
return value === "true" || value === "1"
|
|
|
|
|
}
|
|
|
|
|
}
|