This content is part of a third party extension that is not supported by the Cake project.
Summary
Base-implementation for
ICakeReportPrinter
.
- Assembly
- Cake
.Module .Shared .dll - Namespace
- Cake
.Module .Shared - Interfaces
-
- ICakeReportPrinter
- Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type-.->Interface0["ICakeReportPrinter"]
Type["CakeReportPrinterBase"]
class Type type-node
Derived0["AzurePipelinesReportPrinter"]-->Type
click Derived0 "/api/Cake.AzurePipelines.Module/AzurePipelinesReportPrinter"
Derived1["MyGetReportPrinter"]-->Type
click Derived1 "/api/Cake.MyGet.Module/MyGetReportPrinter"
Syntax
public abstract class CakeReportPrinterBase : ICakeReportPrinter
Constructors
Name | Summary |
---|---|
Cake |
Initializes a new instance of the CakeReportPrinterBase class.
|
Fields
Name | Constant Value | Summary |
---|---|---|
_console |
Gets the
IConsole .
|
|
_context |
Gets the
ICakeContext .
|
Methods
Name | Value | Summary |
---|---|---|
FormatDuration |
string |
Returns the formatted time it took to process one
CakeReportEntry .
static
|
FormatTime |
string |
Formats a
TimeSpan .
static
|
Get |
ConsoleColor |
Calculates the foreground color required to write out one
CakeReportEntry .
static
|
GetTotalTime |
TimeSpan |
Calculates the total time it took to process all
CakeReportEntry elements.
static
|
ShouldWriteTask |
bool |
Check if the
CakeReportEntry should be written.
|
Write |
void | |
WriteLifeCycleStep |
void | |
WriteSkippedStep |
void | |
WriteStep |
void | |
WriteToConsole |
void |
Writes the report to the
IConsole .
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|