INNER CODE UNIT · Go

displayMeta

umputun/ralphex · cmd/ralphex/main.go:562

func displayMeta(colors *progress.Colors, indent int, planFile, planNote, branch, progressPath string) {
	pad := strings.Repeat(" ", indent)
	if planFile != "" {
		colors.Info().Printf("%splan: %s%s\n", pad, toRelPath(planFile), planNote)
	}
	colors.Info().Printf("%sbranch: %s\n", pad, branch)
	colors.Info().Printf("%sprogress log: %s\n", pad, toRelPath(progressPath))
}

// keepDashboardAlive keeps the web dashboard running after execution completes.
// blocks until context is canceled (Ctrl+C). no-op if --serve is not enabled.
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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…