mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
17 lines
477 B
C#
17 lines
477 B
C#
using System;
|
|
|
|
namespace CliFx.Domain
|
|
{
|
|
internal class CommandDirectiveInput
|
|
{
|
|
public string Name { get; }
|
|
|
|
public bool IsDebugDirective => string.Equals(Name, "debug", StringComparison.OrdinalIgnoreCase);
|
|
|
|
public bool IsPreviewDirective => string.Equals(Name, "preview", StringComparison.OrdinalIgnoreCase);
|
|
|
|
public CommandDirectiveInput(string name) => Name = name;
|
|
|
|
public override string ToString() => $"[{Name}]";
|
|
}
|
|
} |