11 references to RootCommand
dotnet-aot (11)
NativeEntryPoint.cs (1)
308
string? subCommandToken = parseResult.GetValue(Parser.
RootCommand
.DotnetSubCommand);
parent\dotnet\Commands\Hidden\Complete\CompleteCommand.cs (1)
77
if (!ReferenceEquals(result.CommandResult.Command, Parser.
RootCommand
))
parent\dotnet\Extensions\ParseResultExtensions.cs (6)
25
parseResult.CommandResult.Command.Equals(Parser.
RootCommand
) && string.IsNullOrEmpty(parseResult.RootSubCommandResult());
39
parseResult.CommandResult.Command.Equals(Parser.
RootCommand
)
40
&& !string.IsNullOrEmpty(parseResult.GetValue(Parser.
RootCommand
.DotnetSubCommand));
53
parseResult.GetResult(Parser.
RootCommand
.DotnetSubCommand) is { Tokens: [{ Type: TokenType.Argument, Value: { } } unmatchedCommandOrFile] }
86
_ => parseResult.GetResult(Parser.
RootCommand
.DotnetSubCommand)?.GetValueOrDefault<string>()
118
GetSubArguments(args, Parser.
RootCommand
.DiagOption);
parent\dotnet\Parser.cs (3)
424
RootCommand
.Subcommands.FirstOrDefault(c => c.Name.Equals(commandName, StringComparison.OrdinalIgnoreCase));
473
public static ParseResult Parse(string commandLineUnsplit) =>
RootCommand
.Parse(commandLineUnsplit, ParserConfiguration);
474
public static ParseResult Parse(string[] args) =>
RootCommand
.Parse(args, ParserConfiguration);