Table of Contents

Interface IOutput

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

Represents a console output interface for writing formatted text and objects.

public interface IOutput

Methods

EndLine()

Ends the current line and starts a new line.

Markup(string)

Writes a string that is parsed as Spectre.Console markup to the output.

MarkupInterpolated(FormattableString)

Writes an interpolated string as Spectre.Console markup: the literal parts are parsed as markup and the string values in the holes are escaped, so a string containing [ is printed rather than parsed.

MarkupLine(string)

Writes a string that is parsed as Spectre.Console markup to the output, followed by a line break.

MarkupLineInterpolated(FormattableString)

Writes an interpolated string as Spectre.Console markup, followed by a line break: the literal parts are parsed as markup and the string values in the holes are escaped.

Write(IRenderable)

Writes a renderable object to the output.

WriteBoldLine<TMessage>(TMessage?)

Writes a message to the output with bold formatting followed by a line break.

WriteBold<TMessage>(TMessage?)

Writes a message to the output with bold formatting.

WriteErrorLine<TMessage>(TMessage?)

Writes an error message to the output followed by a line break.

WriteError<TMessage>(TMessage?)

Writes an error message to the output.

WriteException<TException>(TException?)

Writes an exception details to the output.

WriteLine()

Writes a line break to the output.

WriteLine<TMessage>(TMessage)

Writes a message to the output followed by a line break.

Write<TMessage>(TMessage, IFormatProvider?)

Writes a message to the output with optional formatting.