Documentation Index
Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: Breakdance.Tools.dll
Namespace: CloudNimble.Breakdance.Tools
Inheritance: System.Object
Syntax
CloudNimble.Breakdance.Tools.ColorConsole
Summary
Console Color Helper class that provides coloring to individual commands
Methods
Write
Write with color
Syntax
public static void Write(string text, System.Nullable<System.ConsoleColor> color = null)
Parameters
| Name | Type | Description |
|---|
text | string | - |
color | System.Nullable<System.ConsoleColor> | - |
Write
Writes out a line with color specified as a string
Syntax
public static void Write(string text, string color)
Parameters
| Name | Type | Description |
|---|
text | string | Text to write |
color | string | A console color. Must match ConsoleColors collection names (case insensitive) |
WriteEmbeddedColorLine
Allows a string to be written with embedded color values using:
This is [red]Red[/red] text and this is [cyan]Blue[/cyan] text
Syntax
public static void WriteEmbeddedColorLine(string text, System.Nullable<System.ConsoleColor> baseTextColor = null)
Parameters
| Name | Type | Description |
|---|
text | string | Text to display |
baseTextColor | System.Nullable<System.ConsoleColor> | Base text color |
WriteError
Write a Error Line - Red
Syntax
public static void WriteError(string text)
Parameters
| Name | Type | Description |
|---|
text | string | Text to write out |
WriteInfo
Write a Info Line - dark cyan
Syntax
public static void WriteInfo(string text)
Parameters
| Name | Type | Description |
|---|
text | string | Text to write out |
WriteLine
WriteLine with color
Syntax
public static void WriteLine(string text, System.Nullable<System.ConsoleColor> color = null)
Parameters
| Name | Type | Description |
|---|
text | string | - |
color | System.Nullable<System.ConsoleColor> | - |
WriteLine
Writes out a line with a specific color as a string
Syntax
public static void WriteLine(string text, string color)
Parameters
| Name | Type | Description |
|---|
text | string | Text to write |
color | string | A console color. Must match ConsoleColors collection names (case insensitive) |
WriteSuccess
Write a Success Line - green
Syntax
public static void WriteSuccess(string text)
Parameters
| Name | Type | Description |
|---|
text | string | Text to write out |
WriteWarning
Write a Warning Line - Yellow
Syntax
public static void WriteWarning(string text)
Parameters
| Name | Type | Description |
|---|
text | string | Text to Write out |
and allows you to specify a color for the header. The dashes are colored
Syntax
public static void WriteWrappedHeader(string headerText, char wrapperChar = '-', System.ConsoleColor headerColor = 14, System.ConsoleColor dashColor = 8)
Parameters
| Name | Type | Description |
|---|
headerText | string | Header text to display |
wrapperChar | char | wrapper character (-) |
headerColor | System.ConsoleColor | Color for header text (yellow) |
dashColor | System.ConsoleColor | Color for dashes (gray) |