add OPENCODE_DISABLE_AUTOUPDATE flag

This commit is contained in:
Dax Raad
2025-08-10 21:52:52 -04:00
parent 8cc427daba
commit 70db372466
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ export namespace Flag {
export const OPENCODE_AUTO_SHARE = truthy("OPENCODE_AUTO_SHARE")
export const OPENCODE_DISABLE_WATCHER = truthy("OPENCODE_DISABLE_WATCHER")
export const OPENCODE_CONFIG = process.env["OPENCODE_CONFIG"]
export const OPENCODE_DISABLE_AUTOUPDATE = truthy("OPENCODE_DISABLE_AUTOUPDATE")
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()