Definition
Assembly: Breakdance.Tools.dll Namespace: CloudNimble.Breakdance.Tools Inheritance: System.ObjectSyntax
Summary
Console Color Helper class that provides coloring to individual commandsMethods
Write
Write with colorSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | - |
color | System.Nullable<System.ConsoleColor> | - |
Write
Writes out a line with color specified as a stringSyntax
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] textSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to display |
baseTextColor | System.Nullable<System.ConsoleColor> | Base text color |
WriteError
Write a Error Line - RedSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to write out |
WriteInfo
Write a Info Line - dark cyanSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to write out |
WriteLine
WriteLine with colorSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | - |
color | System.Nullable<System.ConsoleColor> | - |
WriteLine
Writes out a line with a specific color as a stringSyntax
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 - greenSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to write out |
WriteWarning
Write a Warning Line - YellowSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text to Write out |
WriteWrappedHeader
Writes a line of header text wrapped in a in a pair of lines of dashes:
Header Text
and allows you to specify a color for the header. The dashes are coloredSyntax
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) |