mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
28 lines
680 B
C#
28 lines
680 B
C#
namespace Spectre.Console.Cli
|
|
{
|
|
internal sealed class CommandTreeToken
|
|
{
|
|
public Kind TokenKind { get; }
|
|
public int Position { get; }
|
|
public string Value { get; }
|
|
public string Representation { get; }
|
|
public bool IsGrouped { get; set; }
|
|
|
|
public enum Kind
|
|
{
|
|
String,
|
|
LongOption,
|
|
ShortOption,
|
|
Remaining,
|
|
}
|
|
|
|
public CommandTreeToken(Kind kind, int position, string value, string representation)
|
|
{
|
|
TokenKind = kind;
|
|
Position = position;
|
|
Value = value;
|
|
Representation = representation;
|
|
}
|
|
}
|
|
}
|