flag for disabling file watcher

This commit is contained in:
Dax Raad
2025-07-03 10:37:08 -04:00
parent 7a4aa43f22
commit 89821f3f69
2 changed files with 34 additions and 30 deletions
+1
View File
@@ -1,5 +1,6 @@
export namespace Flag {
export const OPENCODE_AUTO_SHARE = truthy("OPENCODE_AUTO_SHARE")
export const OPENCODE_DISABLE_WATCHER = truthy("OPENCODE_DISABLE_WATCHER")
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()