using System; namespace Spectre.Console { /// /// Contains extension methods for . /// public static partial class AnsiConsoleExtensions { /// /// Writes an exception to the console. /// /// The console. /// The exception to write to the console. /// The exception format options. public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.None) { Render(console, exception.GetRenderable(format)); } } }