Table of Contents

CliWriter.WriteLink Method

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

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

public CliWriter WriteLink(CliLink link, CliStyle style, string value)

Parameters

link CliLink

The link with URL.

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.

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

public CliWriter WriteLink(CliLink link, CliStyle style, string format, params object[] arg)

Parameters

link CliLink

The link with URL.

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.

Writes a string as link with URL, to the terminal.

public CliWriter WriteLink(CliLink link, string value)

Parameters

link CliLink

The link with URL.

value string

The string to write.

Returns

CliWriter

The same instance so that multiple calls can be chained.

Writes a formatted string as link with URL, to the terminal.

public CliWriter WriteLink(CliLink link, string format, params object[] arg)

Parameters

link CliLink

The link with URL.

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.