Skip to content

Commit 56ebca3

Browse files
committed
feat(tui): Set TURBO_IS_TUI environment variable when using TUI.
1 parent e563d20 commit 56ebca3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/turborepo-lib/src/task_graph/visitor.rs

+5
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,11 @@ impl ExecContext {
914914
cmd.env("TURBO_HASH", &self.task_hash);
915915
// enable task access tracing
916916

917+
// Allow downstream tools to detect if the task is being ran with TUI
918+
if self.experimental_ui {
919+
cmd.env("TURBO_IS_TUI", "true");
920+
}
921+
917922
// set the trace file env var - frameworks that support this can use it to
918923
// write out a trace file that we will use to automatically cache the task
919924
if self.task_access.is_enabled() {

0 commit comments

Comments
 (0)