feat: add OPENCODE_CONFIG env var for specifying a custom config file (#1370)

This commit is contained in:
Jacob Hands
2025-07-29 10:03:11 -05:00
committed by GitHub
parent a7cfd36b07
commit 862a50d61d
3 changed files with 19 additions and 0 deletions

View File

@@ -1,6 +1,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"]
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()