Skip to content

Commit

Permalink
feat(tui): Set TURBO_IS_TUI environment variable when using TUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Aug 1, 2024
1 parent e563d20 commit 56ebca3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/turborepo-lib/src/task_graph/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,11 @@ impl ExecContext {
cmd.env("TURBO_HASH", &self.task_hash);
// enable task access tracing

// Allow downstream tools to detect if the task is being ran with TUI
if self.experimental_ui {
cmd.env("TURBO_IS_TUI", "true");
}

// set the trace file env var - frameworks that support this can use it to
// write out a trace file that we will use to automatically cache the task
if self.task_access.is_enabled() {
Expand Down

0 comments on commit 56ebca3

Please sign in to comment.