Skip to content

Commit

Permalink
process-compose: keep TUI open after all processes fail
Browse files Browse the repository at this point in the history
Improves the UX by letting users inspect the logs.
  • Loading branch information
sandydoo committed Feb 17, 2025
1 parent 1235cd1 commit b2d2d5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/process-managers/process-compose.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ in
"config" = cfg.configFile;
"disable-dotenv" = true;
"port" = if !cfg.unixSocket.enable then toString cfg.port else null;
# Prevent the TUI from immediately closing if all processes fail.
# Improves the UX by letting users inspect the logs.
"keep-project" = cfg.tui.enable;
"unix-socket" =
if cfg.unixSocket.enable
then cfg.unixSocket.path
Expand Down

0 comments on commit b2d2d5a

Please sign in to comment.