Table of Contents

CliWriter.Write Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Write(CliStyle, string)

Writes a string with the specified style (color and text decoration), to the terminal.

public CliWriter Write(CliStyle style, string value)

Parameters

style CliStyle

The style (color and text decoration).

value string

The string to write.

Returns

CliWriter

The same instance so that multiple calls can be chained.

Write(CliStyle, string, params object[])

Writes a formatted string with the specified style (color and text decoration), to the terminal.

public CliWriter Write(CliStyle style, string format, params object[] arg)

Parameters

style CliStyle

The style (color and text decoration).

format string

A composite format string.

arg object[]

An object array that contains zero or more objects to format and write.

Returns

CliWriter

The same instance so that multiple calls can be chained.