CliTheme Class

Represents the theme used by the Cli. These color and formatting option are mainly used by the help output.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.8
C#
public class CliTheme
Inheritance
Object    CliTheme

Constructors

CliTheme Initializes a new instance of the CliTheme class.
CliTheme(CliTheme) Initializes a new instance of the CliTheme class with a base theme to override.

Properties

BlueGets the Blue theme.
DarkBlueGets the Dark Blue theme.
DarkGreenGets the Dark Green theme.
DarkRedGets the Dark Red theme.
DefaultGets the default theme.
DefaultBgColor Gets or sets the default background color used by the app.

Default is which also means Black.

DefaultColor Gets or sets the default color used by the app.

Default is which also means Gray.

FirstColumnColor Gets or sets the color used for a first column in help output.

Default is which also means DefaultColor.

First column is similar to:

console
<argument-1>

-o, --option-1 <option-1>
-v, --version
-?, -h, --help

sub-command
GreenGets the Green theme.
HeadingCasing Gets or sets the casing used for a heading in help output.

Default is None.

For example, uppercase heading is similar to:

console
USAGE:
ARGUMENTS:
OPTIONS:
COMMANDS:
HeadingColor Gets or sets the color used for a heading in help output.

Default is which also means DefaultColor.

Heading is similar to:

console
Usage:
Arguments:
Options:
Commands:
HeadingNoColon Gets or sets whether colon character at the end, is used for a heading in help output.

Default is .

For example, no colon and uppercase heading is similar to:

console
USAGE
ARGUMENTS
OPTIONS
COMMANDS
NoColorGets the no-color theme.
RedGets the Red theme.
SecondColumnColor Gets or sets the color used for a second column in help output.

Default is which also means DefaultColor.

Second column is similar to:

console
Description for Argument1 [required]

Description for Option1 [default: DefaultForOption1]
Show version information
Show help and usage information

A nested level 1 sub-command
SynopsisColor Gets or sets the color used for the synopsis section in help output.

Default is which also means DefaultColor.

Synopsis section is similar to:

console
DotMake Command-Line TestApp v1.6.0
Copyright © 2023-2024 DotMake

A root cli command with nested children

See Also