Table of Contents

CliWriter.WriteLine Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

WriteLine(CliStyle, string)

Writes a string with the specified style (color and text decoration), followed by the current line terminator, to the terminal.

public CliWriter WriteLine(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.

WriteLine(CliStyle, string, params object[])

Writes a formatted string with the specified style (color and text decoration), followed by the current line terminator, to the terminal.

public CliWriter WriteLine(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.