mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
21 lines
502 B
C#
21 lines
502 B
C#
using System;
|
|
|
|
namespace CliFx.Input;
|
|
|
|
/// <summary>
|
|
/// Input provided by the means of a directive.
|
|
/// </summary>
|
|
public class CommandDirectiveInput(string name)
|
|
{
|
|
/// <summary>
|
|
/// Directive name.
|
|
/// </summary>
|
|
public string Name { get; } = name;
|
|
|
|
internal bool IsDebugDirective =>
|
|
string.Equals(Name, "debug", StringComparison.OrdinalIgnoreCase);
|
|
|
|
internal bool IsPreviewDirective =>
|
|
string.Equals(Name, "preview", StringComparison.OrdinalIgnoreCase);
|
|
}
|