INNER CODE UNIT · Go
keepDashboardAlive
umputun/ralphex · cmd/ralphex/main.go:573
func keepDashboardAlive(ctx context.Context, o opts, req executePlanRequest, closeLog func()) {
if !o.Serve {
return
}
closeLog()
req.Colors.Info().Printf("web dashboard still running at http://%s:%d (press Ctrl+C to exit)\n",
web.ConnectHost(o.Host), o.Port)
<-ctx.Done()
}
// executePlan runs the main execution loop for a plan file.
// handles progress logging, web dashboard, runner execution, and post-execution tasks.
// when req.ProgressLog and req.PhaseHolder are pre-created (worktree mode), uses them directly.
func executePlan(ctx context.Context, o opts, req executePlanRequest) error {
branch := getCurrentBranch(req.GitSvc)
// set up progress logger and phase holder
plr, err := setupProgressLogger(o, req, branch)