From d693998331fc043a95317a5feeae666980b7e2a6 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Mon, 5 Aug 2024 11:06:28 -0400 Subject: [PATCH] fix(tui): allow for TUI use when hooked up to tty --- crates/turborepo-lib/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/turborepo-lib/src/config.rs b/crates/turborepo-lib/src/config.rs index 849c1162c5c6d..d016c31716f08 100644 --- a/crates/turborepo-lib/src/config.rs +++ b/crates/turborepo-lib/src/config.rs @@ -277,7 +277,8 @@ impl ConfigurationOptions { } pub fn ui(&self) -> UIMode { - if atty::is(atty::Stream::Stdout) { + // If we aren't hooked up to a TTY, then do not use TUI + if !atty::is(atty::Stream::Stdout) { return UIMode::Stream; }