Skip to content

Commit

Permalink
Merge pull request #1737 from cachix/pc-keep-project
Browse files Browse the repository at this point in the history
process-compose: keep the TUI open after all processes fail
  • Loading branch information
sandydoo authored Feb 17, 2025
2 parents 1235cd1 + b2d2d5a commit 8ba5a73
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 8ba5a73

Please sign in to comment.