> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ColorConsole

> Console Color Helper class that provides coloring to individual commands

## Definition

**Assembly:** Breakdance.Tools.dll

**Namespace:** CloudNimble.Breakdance.Tools

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.Breakdance.Tools.ColorConsole
```

## Summary

Console Color Helper class that provides coloring to individual commands

## Methods

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Write

Write with color

#### Syntax

```csharp theme={"dark"}
public static void Write(string text, System.Nullable<System.ConsoleColor> color = null)
```

#### Parameters

| Name    | Type                                   | Description |
| ------- | -------------------------------------- | ----------- |
| `text`  | `string`                               | -           |
| `color` | `System.Nullable<System.ConsoleColor>` | -           |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Write

Writes out a line with color specified as a string

#### Syntax

```csharp theme={"dark"}
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) |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> 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

```csharp theme={"dark"}
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 |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteError

Write a Error Line - Red

#### Syntax

```csharp theme={"dark"}
public static void WriteError(string text)
```

#### Parameters

| Name   | Type     | Description       |
| ------ | -------- | ----------------- |
| `text` | `string` | Text to write out |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteInfo

Write a Info Line - dark cyan

#### Syntax

```csharp theme={"dark"}
public static void WriteInfo(string text)
```

#### Parameters

| Name   | Type     | Description       |
| ------ | -------- | ----------------- |
| `text` | `string` | Text to write out |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteLine

WriteLine with color

#### Syntax

```csharp theme={"dark"}
public static void WriteLine(string text, System.Nullable<System.ConsoleColor> color = null)
```

#### Parameters

| Name    | Type                                   | Description |
| ------- | -------------------------------------- | ----------- |
| `text`  | `string`                               | -           |
| `color` | `System.Nullable<System.ConsoleColor>` | -           |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteLine

Writes out a line with a specific color as a string

#### Syntax

```csharp theme={"dark"}
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) |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteSuccess

Write a Success Line - green

#### Syntax

```csharp theme={"dark"}
public static void WriteSuccess(string text)
```

#### Parameters

| Name   | Type     | Description       |
| ------ | -------- | ----------------- |
| `text` | `string` | Text to write out |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> WriteWarning

Write a Warning Line - Yellow

#### Syntax

```csharp theme={"dark"}
public static void WriteWarning(string text)
```

#### Parameters

| Name   | Type     | Description       |
| ------ | -------- | ----------------- |
| `text` | `string` | Text to Write out |

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> 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 colored

#### Syntax

```csharp theme={"dark"}
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)        |
