17 references to GetResult
aspire (8)
Commands\DestroyCommand.cs (1)
31if (result.GetResult(s_listStepsFormatOption) is not null && !result.GetValue(s_listStepsOption))
Commands\PsCommand.cs (1)
123if (result.GetResult(s_outputOption) is { } outputResult
Commands\ResourceCommand.cs (1)
298.Where(argument => ShouldValidateRequiredOption(argument, parseMode) && result.GetResult(options[argument]) is not { Implicit: false })
Commands\SecretSetCommand.cs (2)
56var hasEnvvarSource = result.GetResult(s_envvarSourceOption) is { Implicit: false }; 65else if (hasEnvvarSource && result.GetResult(s_envvarSourceOption)?.Tokens.Count > 0
Commands\UpdateCommand.cs (3)
137|| result.GetResult(_channelOption) is not null || result.GetResult(_qualityOption) is not null 138|| result.GetResult(s_nugetConfigDirOption) is not null))
dotnet-format (2)
Commands\FormatWhitespaceCommand.cs (2)
43var binarylog = symbolResult.GetResult(BinarylogOption); 53var framework = symbolResult.GetResult(FrameworkOption);
dotnet-sourcelink (3)
Microsoft.DotNet.Cli.CommandLine (1)
ResultNavigationExtensions.cs (1)
89public static bool HasOption(this SymbolResult symbolResult, Option option) => symbolResult.GetResult(option) is OptionResult or && !or.Implicit;
System.CommandLine (3)
ParseResult.cs (1)
200_rootCommandResult.GetResult(option);
Parsing\SymbolResult.cs (2)
119if (GetResult(option) is { } result && 138=> GetResult(option) switch