107 references to GetValue
aspire (34)
Commands\AddCommand.cs (1)
104var integrationName = parseResult.GetValue(s_integrationArgument);
Commands\ApiGetCommand.cs (1)
50var id = parseResult.GetValue(s_idArgument)!;
Commands\ApiListCommand.cs (1)
52var scope = parseResult.GetValue(s_scopeArgument)!;
Commands\ApiSearchCommand.cs (1)
64var query = parseResult.GetValue(s_queryArgument)!;
Commands\CompletionsCommand.cs (1)
40var shell = parseResult.GetValue(_shellArgument) ?? CompletionScripts.DetectShell(_environment);
Commands\ConfigCommand.cs (4)
77var key = parseResult.GetValue(s_keyArgument); 134var key = parseResult.GetValue(s_keyArgument); 135var value = parseResult.GetValue(s_valueArgument); 371var key = parseResult.GetValue(s_keyArgument);
Commands\DescribeCommand.cs (1)
128var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\DoCommand.cs (3)
62var step = parseResult.GetValue(_stepArgument); 117protected override string? GetTargetStepName(ParseResult parseResult) => parseResult.GetValue(_stepArgument); 126var step = parseResult.GetValue(_stepArgument);
Commands\DocsGetCommand.cs (1)
55var slug = parseResult.GetValue(s_slugArgument)!;
Commands\DocsSearchCommand.cs (1)
57var query = parseResult.GetValue(s_queryArgument)!;
Commands\ExportCommand.cs (1)
76var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\IntegrationSearchCommand.cs (1)
253protected override string? GetSearchTerm(ParseResult parseResult) => parseResult.GetValue(_queryArgument);
Commands\LogsCommand.cs (1)
146var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\McpCallCommand.cs (2)
54var resourceName = parseResult.GetValue(s_resourceArgument)!; 55var toolName = parseResult.GetValue(s_toolArgument)!;
Commands\ResourceCommand.cs (2)
124var resourceName = parseResult.GetValue(s_resourceArgument)!; 125var commandName = parseResult.GetValue(s_commandArgument)!;
Commands\Sdk\SdkDumpCommand.cs (1)
77var integrationArgs = parseResult.GetValue(s_integrationArgument) ?? [];
Commands\Sdk\SdkGenerateCommand.cs (1)
61var integrationProject = parseResult.GetValue(s_integrationArgument)!;
Commands\SecretDeleteCommand.cs (1)
38var key = parseResult.GetValue(s_keyArgument)!;
Commands\SecretGetCommand.cs (1)
39var key = parseResult.GetValue(s_keyArgument)!;
Commands\SecretSetCommand.cs (2)
43var key = parseResult.GetValue(s_keyArgument)!; 44var value = parseResult.GetValue(s_valueArgument)!;
Commands\TelemetryLogsCommand.cs (1)
83var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\TelemetrySpansCommand.cs (1)
73var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\TelemetryTracesCommand.cs (1)
72var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\TerminalAttachCommand.cs (1)
81var resourceName = parseResult.GetValue(s_resourceArgument)!;
Commands\TerminalTapePlayCommand.cs (1)
75var resourceName = parseResult.GetValue(_resourceArgument)!;
Commands\WaitCommand.cs (1)
65var resourceName = parseResult.GetValue(s_resourceArgument)!;
cdac-build-tool (1)
ComposeCommand.cs (1)
30var inputs = parse.GetValue(inputFiles);
crossgen2 (1)
Program.cs (1)
123Dictionary<string, string> inputFilePathsArg = _command.Result.GetValue(_command.InputFilePaths);
dotnet-aot (14)
NativeEntryPoint.cs (1)
308string? subCommandToken = parseResult.GetValue(Parser.RootCommand.DotnetSubCommand);
parent\dotnet\Commands\Run\AotRunCommand.cs (1)
341string[] parsedApplicationArguments = parseResult.GetValue(definition.ApplicationArguments) ?? [];
parent\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
20_fileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument);
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
21_slnFileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument);
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (2)
22_fileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument); 23_projects = [.. parseResult.GetValue(Definition.ProjectPathArgument) ?? []];
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (1)
34var packageIdArgument = _parseResult.GetValue(Definition.PackageIdArgument);
parent\dotnet\Commands\Tool\Run\ToolRunCommand.cs (2)
23_toolCommandName = result.GetValue(Definition.CommandNameArgument); 24_forwardArgument = result.GetValue(Definition.CommandArgument);
parent\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (1)
40searchTerm: _parseResult.GetValue(Definition.SearchTermArgument),
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
31_packageId = new PackageId(parseResult.GetValue(Definition.PackageIdArgument));
parent\dotnet\Extensions\ParseResultExtensions.cs (2)
39&& !string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)); 137|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)));
parent\dotnet\Parser.cs (1)
480var arguments = context.ParseResult.GetValue(format.Arguments) ?? [];
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
314if (parseResult.GetValue<string>(SlnOrProjectArgument) is string { Length: > 0 } slnOrProject)
dotnet-sourcelink (4)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
31SuggestionShellScriptHandler.Handle(context.InvocationConfiguration.Output, context.GetValue(shellTypeArgument));
dotnet-watch (1)
Program.cs (1)
162if (runParseResult.GetValue(runCommandDefinition.ApplicationArguments) is not [var firstArg, ..])
ilasm (2)
Program.cs (2)
31string[]? inputFiles = _command.Result.GetValue(_command.InputFilePaths); 285private T Get<T>(Argument<T> argument) => _command.Result.GetValue(argument)!;
ilc (1)
Program.cs (1)
131typeSystemContext.InputFilePaths = _command.Result.GetValue(_command.InputFilePaths);
Microsoft.DotNet.MacOsPkg.Cli (5)
Program.cs (5)
49var srcPath = result.GetValue(unpackSrcArgument); 50var dstPath = result.GetValue(unpackDestinationArgument); 62var srcPath = result.GetValue(packSrcArgument); 63var dstPath = result.GetValue(packDstArgument); 74var srcPath = result.GetValue(pkgOrAppArgument);
Microsoft.TemplateEngine.Cli (9)
Commands\create\InstantiateCommandArgs.cs (2)
30RemainingArguments = parseResult.GetValue(command.Definition.RemainingArguments) ?? []; 31ShortName = parseResult.GetValue(command.Definition.ShortNameArgument);
Commands\details\DetailsCommandArgs.cs (1)
13string nameCriteria = parseResult.GetValue(detailsCommand.Definition.NameArgument)
Commands\install\InstallCommandArgs.cs (1)
19TemplatePackages = parseResult.GetValue(installCommand.Definition.NameArgument)!;
Commands\list\ListCommandArgs.cs (2)
14string? nameCriteria = parseResult.GetValue(command.Definition.NameArgument); 24string? newCommandArgument = parseResult.GetValue(newCommand.Definition.ShortNameArgument);
Commands\search\SearchCommandArgs.cs (2)
14string? nameCriteria = parseResult.GetValue(command.Definition.NameArgument); 23string? newCommandArgument = parseResult.GetValue(newCommand.Definition.ShortNameArgument);
Commands\uninstall\UninstallCommandArgs.cs (1)
15TemplatePackages = parseResult.GetValue(uninstallCommand.Definition.NameArgument) ?? [];
NuGet.CommandLine.XPlat (31)
Commands\ConfigCommands\ConfigCommand.cs (4)
126AllOrConfigKey = parseResult.GetValue(allOrConfigKeyArgument), 164ConfigKey = parseResult.GetValue(setConfigKeyArgument), 165ConfigValue = parseResult.GetValue(configValueArgument), 195ConfigKey = parseResult.GetValue(unsetConfigKeyArgument),
Commands\DeleteCommand.cs (2)
73string packageId = parseResult.GetValue(packageIdArgument); 74string packageVersion = parseResult.GetValue(packageVersionArgument);
Commands\LocalsCommand.cs (1)
48string? cacheLocation = parseResult.GetValue(cacheLocationArgument);
Commands\NuGet\Add\DotnetNuGetAddCommand.cs (1)
53Source = parseResult.GetValue(sourceArg),
Commands\NuGet\Disable\DotnetNuGetDisableCommand.cs (1)
29Name = parseResult.GetValue(nameArg),
Commands\NuGet\Enable\DotnetNuGetEnableCommand.cs (1)
29Name = parseResult.GetValue(nameArg),
Commands\NuGet\Remove\DotnetNuGetRemoveCommand.cs (1)
37Name = parseResult.GetValue(nameArg),
Commands\NuGet\Update\DotnetNuGetUpdateCommand.cs (1)
53Name = parseResult.GetValue(nameArg),
Commands\Package\Download\PackageDownloadCommand.cs (1)
80IReadOnlyList<PackageWithNuGetVersion> packages = parserResult.GetValue(packagesArguments) ?? [];
Commands\Package\Stage\StagePushCommand.cs (1)
107PackagePath = parseResult.GetValue(packagePathArgument)!,
Commands\Package\Update\PackageUpdateCommand.cs (1)
52IReadOnlyList<PackageWithVersionRange> packages = args.GetValue(packagesArguments) ?? [];
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
153var pathValue = parseResult.GetValue(path) ?? string.Empty;
Commands\PackageSearch\PackageSearchCommand.cs (1)
109SearchTerm = parserResult.GetValue(searchTerm),
Commands\PushCommand.cs (1)
115string[]? packagePaths = parseResult.GetValue(packagePathsArgument);
Commands\Signing\SignCommand.cs (1)
134string[]? packagePathValues = parseResult.GetValue(packagePaths);
Commands\Signing\TrustedSignersCommand.cs (9)
55return await ExecuteCommand(TrustCommand.Sync, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name)); 73return await ExecuteCommand(TrustCommand.Remove, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name)); 95return await ExecuteCommand(TrustCommand.Author, algorithm: null, parseResult.GetValue(allowUntrustedRootOption), owners: null, parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: parseResult.GetValue(package)); 119return await ExecuteCommand(TrustCommand.Repository, algorithm: null, parseResult.GetValue(allowUntrustedRootOption), owners: parseResult.GetValue(owners), parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: parseResult.GetValue(package)); 143return await ExecuteCommand(TrustCommand.Certificate, algorithm: parseResult.GetValue(algorithm), parseResult.GetValue(allowUntrustedRootOption), owners: null, parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: null, fingerprint: parseResult.GetValue(fingerprint)); 165return await ExecuteCommand(TrustCommand.Source, algorithm: null, allowUntrustedRootOption: false, owners: parseResult.GetValue(owners), parseResult.GetValue(verbosity), parseResult.GetValue(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: parseResult.GetValue(sourceUrl));
Commands\Signing\VerifyCommand.cs (1)
66string[]? packagePathValues = parseResult.GetValue(packagePaths);
Commands\Why\WhyCommand.cs (2)
112Path = parseResult.GetValue(path)!, 113Package = parseResult.GetValue(package)!,
System.CommandLine (1)
Parsing\SymbolResult.cs (1)
104/// <inheritdoc cref="ParseResult.GetValue{T}(Argument{T})"/>
System.CommandLine.StaticCompletions (1)
CompletionsCommandParser.cs (1)
37var shellName = args.GetValue(command.GenerateScriptCommand.ShellArgument) ?? throw new InvalidOperationException();