Skip to content

Commit

Permalink
fix #1109: only disable tui if we're in detached mode
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Apr 8, 2024
1 parent dce1b9c commit a71323c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devenv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,12 +953,13 @@ impl App {
let process = process.unwrap_or("");

let processes_script = self.devenv_dotfile.join("processes");
let tui_enabled = if *detach { "0" } else { "1" };
// we force disable process compose tui if detach is enabled
let tui = if *detach { "PC_TUI_ENABLED=0" } else { "" };
fs::write(
&processes_script,
indoc::formatdoc! {"
#!/usr/bin/env bash
export PC_TUI_ENABLED={tui_enabled}
{tui}
exec {proc_script_string} {process}
"},
)
Expand Down

0 comments on commit a71323c

Please sign in to comment.