mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-23 03:32:51 +08:00
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:
parent
7f6f2437b1
commit
b17eabaa1f
@ -7,6 +7,15 @@ namespace Spectre.Console
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static partial class AnsiConsole
|
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>
|
/// <summary>
|
||||||
/// Writes the specified markup to the console.
|
/// Writes the specified markup to the console.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -28,6 +37,15 @@ namespace Spectre.Console
|
|||||||
Console.Markup(provider, format, args);
|
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>
|
/// <summary>
|
||||||
/// Writes the specified markup, followed by the current line terminator, to the console.
|
/// Writes the specified markup, followed by the current line terminator, to the console.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user