Summary
The default console implementation.
Syntax
public sealed class CakeConsole : IConsole
Constructors
Name | Summary |
---|---|
CakeConsole |
Initializes a new instance of the CakeConsole class.
|
Properties
Name | Value | Summary |
---|---|---|
BackgroundColor | ConsoleColor |
Gets or sets the background color.
|
ForegroundColor | ConsoleColor |
Gets or sets the foreground color.
|
Support |
bool |
Gets a value indicating whether or not the console supports ANSI escape codes.
|
Methods
Name | Value | Summary |
---|---|---|
ResetColor |
void |
Sets the foreground and background console colors to their defaults.
|
Write |
void |
Writes the text representation of the specified array of objects to the
console output using the specified format information.
|
WriteError |
void |
Writes the text representation of the specified array of objects to the
console error output using the specified format information.
|
WriteErrorLine |
void |
Writes the text representation of the specified array of objects, followed
by the current line terminator, to the console error output using the
specified format information.
|
WriteLine |
void |
Writes the text representation of the specified array of objects, followed
by the current line terminator, to the console output using the specified
format information.
|
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 |
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 |
From StringExtensions
Requires the Cake.Issues addin
|
WriteErrorLine |
void |
Writes an empty line to the console error output.
From ConsoleExtensions
|
WriteLine |
void |
Writes an empty line to the console output.
From ConsoleExtensions
|