private static ConsoleColor GetItemForegroundColor(CakeReportEntry item) { if (item.Category == CakeReportEntryCategory.Setup || item.Category == CakeReportEntryCategory.Teardown) { return(ConsoleColor.Cyan); } return(item.ExecutionStatus == CakeTaskExecutionStatus.Executed ? ConsoleColor.Green : ConsoleColor.Gray); }
private static string FormatDuration(CakeReportEntry item) { if (item.ExecutionStatus == CakeTaskExecutionStatus.Skipped) { return("Skipped"); } return(FormatTime(item.Duration)); }
private bool ShouldWriteTask(CakeReportEntry item) { if (item.ExecutionStatus == CakeTaskExecutionStatus.Delegated) { return(_context.Log.Verbosity >= Verbosity.Verbose); } return(true); }
private static ConsoleColor GetItemForegroundColor(CakeReportEntry item) { return(item.ExecutionStatus == CakeTaskExecutionStatus.Executed ? ConsoleColor.Green : ConsoleColor.Gray); }