From 47c1d4926c2e443d6495bd76a4da85c6bb6722ff Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sat, 19 Apr 2025 08:58:08 +0100 Subject: [PATCH] feat: introduce `PESDE_TOOLING_FORCE_INTERACTIVE` override This environment variable allows overriding the result of the interactivity status guess by setting it to any non-empty value. --- toolchainlib/src/init.luau | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index b0a41d0..ecde565 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -167,7 +167,10 @@ local function getGithubToken(): Option end local function isInteractive(): boolean - return sys.isTTY("stdout") and process.env.TERM ~= "dumb" and process.env.CI == nil + return sys.isTTY("stdout") + and process.env.TERM ~= "dumb" + and process.env.CI == nil + and process.env.PESDE_TOOLING_FORCE_INTERACTIVE ~= nil end -- Initialize the shared global progress bar state