cake-build / cake

:cake: Cake (C# Make) is a cross platform build automation system.
https://cakebuild.net
MIT License
3.87k stars 727 forks source link

GH4055: Add task skip reason to task summary output #4056

Closed gep13 closed 1 year ago

gep13 commented 1 year ago

Via a new setting, --Settings_UseSpectreConsoleForConsoleOutput, it is now possible to output the task headers, and task summary using Spectre.Console. This allows for the easy addition of a new column in the task summary, which includes information about why any given task has been skipped.

The old CakeReportPrinter is still in play, but some implementation has been moved from within the DefaultExecutionStrategy to the reporter class. Depending on the setting mentioned above, either the Spectre.Console version of the reporter will be added to the IoC container, or the old version will be in place.

Fixes #4055

gep13 commented 1 year ago

Original Cake output:

image

Spectre.Console Output with no tasks being skipped:

image

Spectre.Console Output with a task that is being skipped:

image
devlead commented 1 year ago

@gep13 your changes have been merged, thanks for your contribution 👍