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.
This commit is contained in:
Erica Marigold 2025-04-19 08:58:08 +01:00
parent 90386f1ec9
commit 47c1d4926c
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -167,7 +167,10 @@ local function getGithubToken(): Option<string>
end end
local function isInteractive(): boolean 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 end
-- Initialize the shared global progress bar state -- Initialize the shared global progress bar state