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);
 }
Beispiel #2
0
        private static string FormatDuration(CakeReportEntry item)
        {
            if (item.ExecutionStatus == CakeTaskExecutionStatus.Skipped)
            {
                return("Skipped");
            }

            return(FormatTime(item.Duration));
        }
Beispiel #3
0
        private bool ShouldWriteTask(CakeReportEntry item)
        {
            if (item.ExecutionStatus == CakeTaskExecutionStatus.Delegated)
            {
                return(_context.Log.Verbosity >= Verbosity.Verbose);
            }

            return(true);
        }
Beispiel #4
0
 private static ConsoleColor GetItemForegroundColor(CakeReportEntry item)
 {
     return(item.ExecutionStatus == CakeTaskExecutionStatus.Executed ? ConsoleColor.Green : ConsoleColor.Gray);
 }