Class ConsoleAppInfoExtensions
- Namespace
- Ploch.CommandLine.Spectre
- Assembly
- Ploch.CommandLine.Spectre.dll
Provides extension methods for rendering and validating ConsoleAppInfo.
public static class ConsoleAppInfoExtensions
- Inheritance
-
ConsoleAppInfoExtensions
- Inherited Members
Methods
- PrintAppInfo(ConsoleAppInfo, IAnsiConsole)
Prints the application information to the given console, including the name as FigletText, name with a version, and description.
- Validate(ConsoleAppInfo)
Validates that the application information is in a valid state: a name must be present and must not consist solely of whitespace, since the banner renders it as FigletText.