7 references to Command
dotnet (2)
Extensions\ParseResultExtensions.cs (1)
34|| token.Type == TokenType.Command
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
22var secondVerb = parseResult.Tokens.Where(s => s.Type == TokenType.Command).Skip(1).FirstOrDefault()?.Value ?? "";
System.CommandLine (5)
Parsing\ParseOperation.cs (1)
123else if (currentTokenType == TokenType.Command)
Parsing\StringExtensions.cs (4)
143case TokenType.Command: 187Token Command(string value, Command cmd) => new(value, TokenType.Command, cmd, i); 447tokens.Add(cmd.Name, new Token(cmd.Name, TokenType.Command, cmd, Token.ImplicitPosition)); 453tokens.Add(childAlias, new Token(childAlias, TokenType.Command, cmd, Token.ImplicitPosition));