Table of Contents

Method PrintAppInfo

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

PrintAppInfo(ConsoleAppInfo, IAnsiConsole)

Prints the application information to the given console, including the name as FigletText, name with a version, and description.

public static void PrintAppInfo(this ConsoleAppInfo appInfo, IAnsiConsole console)

Parameters

appInfo ConsoleAppInfo

The application information to print.

console IAnsiConsole

The console to print to. AppBuilder passes its standard error console, so the banner stays out of the command's own output; the console remains the caller's.

Exceptions

ArgumentNullException

Thrown when appInfo or console is null.

InvalidOperationException

Thrown when the application name is null, empty, or whitespace.