mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 07:47:56 +01:00
* Move Spectre.Console.Cli to its own repository * Update build script to use Cake.Sdk and .NET Make * Remove StyleCop (unmaintained) * Add linting using dotnet format * Fix generator which was broken * Update dependencies
14 lines
342 B
C#
14 lines
342 B
C#
using Spectre.Console;
|
|
|
|
namespace Generator.Commands;
|
|
|
|
public static class AsciiCastExtensions
|
|
{
|
|
public static AsciiCastOut WrapWithAsciiCastRecorder(this IAnsiConsole ansiConsole)
|
|
{
|
|
AsciiCastOut castRecorder = new(ansiConsole.Profile.Out);
|
|
ansiConsole.Profile.Out = castRecorder;
|
|
|
|
return castRecorder;
|
|
}
|
|
} |