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
appInfoConsoleAppInfoThe application information to print.
consoleIAnsiConsoleThe 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
appInfoorconsoleis null.- InvalidOperationException
Thrown when the application name is null, empty, or whitespace.