Adds helper overloads for Markup calls without args

Without specific overloads without the args string.format will get called even if it's not needed. 

This closes #309
This commit is contained in:
Phil Scott 2021-03-21 22:26:02 -04:00 committed by Patrik Svensson
parent 7f6f2437b1
commit b17eabaa1f

View File

@ -7,6 +7,15 @@ namespace Spectre.Console
/// </summary>
public static partial class AnsiConsole
{
/// <summary>
/// Writes the specified markup to the console.
/// </summary>
/// <param name="value">The value to write.</param>
public static void Markup(string value)
{
Console.Markup(value);
}
/// <summary>
/// Writes the specified markup to the console.
/// </summary>
@ -28,6 +37,15 @@ namespace Spectre.Console
Console.Markup(provider, format, args);
}
/// <summary>
/// Writes the specified markup, followed by the current line terminator, to the console.
/// </summary>
/// <param name="value">The value to write.</param>
public static void MarkupLine(string value)
{
Console.MarkupLine(value);
}
/// <summary>
/// Writes the specified markup, followed by the current line terminator, to the console.
/// </summary>