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