Tyrrrz/CliFx

Semantic highlighting for exception messages

Closed this issue · 2 comments

Spectre.Console has a feature where it parses and highlights different parts of exception messages.

See here:

image

It looks cool! We should steal it!

Hello,
This seems like a fun challenge, I'd like to work on it.

I've been looking though the code, and just to make sure I've understood it correctly: The part that needs the change is the WriteError method in CliApplication

private void WriteError(string message) => _console.WithForegroundColor(ConsoleColor.Red, () =>

Right? And maybe an option in ApplicationConfiguration to allow for a compact mode.

Hi.
Yup, that sounds right.