Skip to content

IOutputTransformer

Transforms a logical value into a target output format.

public interface IOutputTransformer

TransformAsync(object?, CancellationToken)

Section titled “TransformAsync(object?, CancellationToken)”

Transforms a value to the target representation.

ValueTask<string> TransformAsync(object? value, CancellationToken cancellationToken = default)

ValueTask<string> - Transformed payload as text.

Gets a value indicating whether this transformer’s output is meant to be parsed by a program (for example JSON) rather than read by a person. The console’s interaction feedback then moves to the error stream, out of the payload; see FeedbackStream.

bool IsMachineReadable { get; }

bool

Gets the MIME type produced by this transformer.

string MimeType { get; }

string

Gets the transformer format name.

string Name { get; }

string

Gets a value indicating whether this transformer can be displayed by the interactive result pager.

bool SupportsInteractivePaging { get; }

bool