Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.48k stars 60 forks source link

Semantic highlighting for exception messages #78

Closed Tyrrrz closed 3 years ago

Tyrrrz commented 3 years ago

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!

89netraM commented 3 years ago

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
https://github.com/Tyrrrz/CliFx/blob/8e1488c395b66a9b648b3531945fddddf9086e70/CliFx/CliApplication.cs#L41
Right? And maybe an option in ApplicationConfiguration to allow for a compact mode.

Tyrrrz commented 3 years ago

Hi. Yup, that sounds right.