Skip to content

Style fallout-migrate's banner and summary output with AnsiConsole#3

Closed
dennisdoomen wants to merge 1 commit into
improve-migrationfrom
migrate-ansiconsole-output
Closed

Style fallout-migrate's banner and summary output with AnsiConsole#3
dennisdoomen wants to merge 1 commit into
improve-migrationfrom
migrate-ansiconsole-output

Conversation

@dennisdoomen

Copy link
Copy Markdown
Owner

Stacked on Fallout-build#507. Replaces the plain Console.WriteLine calls in MigrateCommand's banner and summary printing with Spectre.Console's AnsiConsole.

What changed

  • Bold banner text, yellow dry-run notice
  • Bold counts, yellow warnings, green completion message, dimmed guide link in the summary
  • Interpolated values (paths, warning text) go through MarkupLineInterpolated so user-controlled content can't be misread as markup

Left untouched:

  • Console.Error.WriteLine for the two error messages -- stderr semantics matter for piping/exit codes
  • The TextWriter-based per-file/per-rename logging in Steps/Common -- stays plain text so MigrationIntegrationSpecs can keep capturing it via TextWriter.Null without a console

No behavior change; internal-only, no public API touched.

Verification

dotnet test tests/Fallout.Migrate.Specs -- 22/22 pass.

Replace the plain Console.WriteLine calls in MigrateCommand's banner
and summary printing with Spectre.Console's AnsiConsole: bold banner,
yellow dry-run notice and warnings, green completion messages, dimmed
guide link. Interpolated values (paths, warning text) go through
MarkupLineInterpolated so user-controlled content can't be
misinterpreted as markup.

Left Console.Error.WriteLine for the two error messages (stderr
semantics matter for piping/exit codes) and the TextWriter-based
per-file/per-rename logging in the Steps/Common classes untouched --
that log stays plain text so MigrationIntegrationSpecs can keep
capturing it via TextWriter.Null without a console.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@dennisdoomen
dennisdoomen force-pushed the migrate-ansiconsole-output branch from eabdaf5 to 38d0437 Compare July 18, 2026 11:31
@dennisdoomen

Copy link
Copy Markdown
Owner Author

Superseded by PR on Fallout-build/Fallout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant