117 references to GetValue
aspire (27)
Commands\AddCommand.cs (1)
71
var integrationName = parseResult.
GetValue
(s_integrationArgument);
Commands\ConfigCommand.cs (4)
86
var key = parseResult.
GetValue
(s_keyArgument);
146
var key = parseResult.
GetValue
(s_keyArgument);
147
var value = parseResult.
GetValue
(s_valueArgument);
366
var key = parseResult.
GetValue
(s_keyArgument);
Commands\DescribeCommand.cs (1)
117
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\DoCommand.cs (3)
42
var step = parseResult.
GetValue
(_stepArgument);
50
var step = parseResult.
GetValue
(_stepArgument);
97
var step = parseResult.
GetValue
(_stepArgument);
Commands\DocsGetCommand.cs (1)
64
var slug = parseResult.
GetValue
(s_slugArgument)!;
Commands\DocsSearchCommand.cs (1)
65
var query = parseResult.
GetValue
(s_queryArgument)!;
Commands\ExportCommand.cs (1)
74
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\LogsCommand.cs (1)
134
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\McpCallCommand.cs (2)
66
var resourceName = parseResult.
GetValue
(s_resourceArgument)!;
67
var toolName = parseResult.
GetValue
(s_toolArgument)!;
Commands\ResourceCommand.cs (2)
68
var resourceName = parseResult.
GetValue
(s_resourceArgument)!;
69
var commandName = parseResult.
GetValue
(s_commandArgument)!;
Commands\Sdk\SdkDumpCommand.cs (1)
71
var integrationArgs = parseResult.
GetValue
(s_integrationArgument) ?? [];
Commands\Sdk\SdkGenerateCommand.cs (1)
64
var integrationProject = parseResult.
GetValue
(s_integrationArgument)!;
Commands\SecretDeleteCommand.cs (1)
46
var key = parseResult.
GetValue
(s_keyArgument)!;
Commands\SecretGetCommand.cs (1)
46
var key = parseResult.
GetValue
(s_keyArgument)!;
Commands\SecretSetCommand.cs (2)
51
var key = parseResult.
GetValue
(s_keyArgument)!;
52
var value = parseResult.
GetValue
(s_valueArgument)!;
Commands\TelemetryLogsCommand.cs (1)
79
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\TelemetrySpansCommand.cs (1)
75
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\TelemetryTracesCommand.cs (1)
73
var resourceName = parseResult.
GetValue
(s_resourceArgument);
Commands\WaitCommand.cs (1)
70
var resourceName = parseResult.
GetValue
(s_resourceArgument)!;
cdac-build-tool (1)
ComposeCommand.cs (1)
30
var inputs = parse.
GetValue
(inputFiles);
crossgen2 (1)
Program.cs (1)
108
Dictionary<string, string> inputFilePathsArg = _command.Result.
GetValue
(_command.InputFilePaths);
dotnet (50)
Commands\DotNetCommandFactory.cs (1)
59
var args = parseResult.
GetValue
(catchAllUserInputArgument) ?? [];
Commands\Format\FormatCommandParser.cs (1)
12
command.SetAction(parseResult => FormatCommand.Run(parseResult.
GetValue
(command.Arguments) ?? []));
Commands\Fsi\FsiCommandParser.cs (1)
12
command.SetAction(parseResult => FsiCommand.Run(parseResult.
GetValue
(command.Arguments) ?? []));
Commands\Help\HelpCommand.cs (1)
24
if (result.
GetValue
(definition.Argument) is string[] args && args is not [])
Commands\Hidden\Complete\CompleteCommand.cs (1)
55
var input = complete.
GetValue
(definition.PathArgument) ?? string.Empty;
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommand.cs (1)
29
var exeName = Path.GetFileName(result.
GetValue
(definition.Argument));
Commands\MSBuild\MSBuildCommand.cs (1)
39
..parseResult.
GetValue
(definition.Arguments) ?? [],
Commands\NuGet\NuGetCommand.cs (1)
28
&& parseResult.
GetValue
(pathArg) is { } path
Commands\Pack\PackCommand.cs (3)
33
var args = parseResult.
GetValue
(definition.SlnOrProjectOrFileArgument) ?? [];
94
var args = parseResult.
GetValue
(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>();
141
var args = parseResult.
GetValue
(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>();
Commands\Package\Add\PackageAddCommand.cs (1)
22
_packageId = parseResult.
GetValue
(Definition.PackageIdArgument);
Commands\Package\PackageCommandParser.cs (2)
54
if (context.ParseResult.
GetValue
(def.PackageIdArgument) is { HasVersion: false } packageId)
106
(false, false) => projectOrFileArgument != null && parseResult.
GetValue
(projectOrFileArgument) is { } projectOrFile
Commands\Package\Remove\PackageRemoveCommand.cs (1)
20
var arguments = _parseResult.
GetValue
(_definition.CmdPackageArgument) ?? [];
Commands\Package\Search\PackageSearchCommand.cs (1)
21
var searchArgument = _parseResult.
GetValue
(Definition.SearchTermArgument);
Commands\Project\Convert\ProjectConvertCommand.cs (1)
29
_file = parseResult.
GetValue
(Definition.FileArgument) ?? string.Empty;
Commands\Publish\PublishCommand.cs (1)
36
string[] args = parseResult.
GetValue
(definition.SlnOrProjectOrFileArgument) ?? [];
Commands\Reference\Add\ReferenceAddCommand.cs (1)
34
var arguments = _parseResult.
GetValue
(Definition.ProjectPathArgument).ToList().AsReadOnly();
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
21
_arguments = parseResult.
GetValue
(Definition.ProjectPathArgument).ToList().AsReadOnly();
Commands\Run\RunCommand.cs (1)
830
var applicationArguments = parseResult.
GetValue
(definition.ApplicationArguments)?.ToList();
Commands\Solution\Add\SolutionAddCommand.cs (2)
43
_fileOrDirectory = parseResult.
GetValue
(Definition.Parent.SlnArgument)!;
44
_projects = (IReadOnlyCollection<string>)(parseResult.
GetValue
(Definition.ProjectPathArgument) ?? []);
Commands\Solution\List\SolutionListCommand.cs (1)
20
_fileOrDirectory = parseResult.
GetValue
(Definition.Parent.SlnArgument);
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
21
_slnFileOrDirectory = parseResult.
GetValue
(Definition.Parent.SlnArgument);
Commands\Solution\Remove\SolutionRemoveCommand.cs (2)
22
_fileOrDirectory = parseResult.
GetValue
(Definition.Parent.SlnArgument);
23
_projects = [.. parseResult.
GetValue
(Definition.ProjectPathArgument) ?? []];
Commands\Tool\Execute\ToolExecuteCommand.cs (2)
40
_packageToolIdentityArgument = result.
GetValue
(Definition.PackageIdentityArgument);
41
_forwardArguments = result.
GetValue
(Definition.CommandArgument) ?? [];
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
83
_packageIdentityWithRange = parseResult.
GetValue
(updateDef.PackageIdentityArgument);
88
_packageIdentityWithRange = parseResult.
GetValue
(installDef.PackageIdentityArgument);
Commands\Tool\Install\ToolInstallLocalCommand.cs (2)
48
_packageIdentityWithRange = parseResult.
GetValue
(updateDef.PackageIdentityArgument);
53
_packageIdentityWithRange = parseResult.
GetValue
(installDef.PackageIdentityArgument);
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
29
var packageIdArgument = _parseResult.
GetValue
(Definition.PackageIdArgument);
Commands\Tool\List\ToolListLocalCommand.cs (1)
34
var packageIdArgument = _parseResult.
GetValue
(Definition.PackageIdArgument);
Commands\Tool\Run\ToolRunCommand.cs (2)
23
_toolCommandName = result.
GetValue
(Definition.CommandNameArgument);
24
_forwardArgument = result.
GetValue
(Definition.CommandArgument);
Commands\Tool\Search\ToolSearchCommand.cs (1)
40
searchTerm: _parseResult.
GetValue
(Definition.SearchTermArgument),
Commands\Tool\Store\StoreCommand.cs (1)
42
msbuildArgs.AddRange(result.
GetValue
(definition.Argument) ?? []);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
53
var packageId = new PackageId(_parseResult.
GetValue
(Definition.PackageIdArgument));
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
31
_packageId = new PackageId(parseResult.
GetValue
(Definition.PackageIdArgument));
Commands\Tool\Update\ToolUpdateCommand.cs (1)
83
if (!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.PackageIdentityArgument)?.VersionRange?.OriginalString) &&
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
51
workloadIdArgument = parseResult.
GetValue
(installDef.WorkloadIdArgument);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
26
_slnOrProjectArgument = result.
GetValue
(Definition.SlnOrProjectArgument);
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
23
_workloadIdStub = result.
GetValue
(Definition.WorkloadIdStubArgument);
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
59
_workloadVersion = result.
GetValue
(Definition.WorkloadVersionArgument);
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
32
_workloadIds = parseResult.
GetValue
(Definition.WorkloadIdArgument)
Extensions\ParseResultExtensions.cs (1)
102
|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.
GetValue
(Parser.RootCommand.DotnetSubCommand)));
Parser.cs (1)
373
var arguments = context.ParseResult.
GetValue
(format.Arguments) ?? [];
Program.cs (1)
311
string commandName = "dotnet-" + parseResult.
GetValue
(Parser.RootCommand.DotnetSubCommand);
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)
160
if (runParseResult.
GetValue
(runCommandDefinition.ApplicationArguments) is not [var firstArg, ..])
ilasm (2)
Program.cs (2)
33
string[]? inputFiles = _command.Result.
GetValue
(_command.InputFilePaths);
289
private T Get<T>(Argument<T> argument) => _command.Result.
GetValue
(argument)!;
ilc (1)
Program.cs (1)
132
typeSystemContext.InputFilePaths = _command.Result.
GetValue
(_command.InputFilePaths);
Microsoft.DotNet.Cli.Definitions (3)
Commands\Hidden\Add\AddReferenceCommandDefinition.cs (1)
26
: parseResult.
GetValue
(Parent.ProjectOrFileArgument);
Commands\Hidden\List\ListReferenceCommandDefinition.cs (1)
22
=> parseResult.
GetValue
(Parent.SlnOrProjectOrFileArgument);
Commands\Hidden\Remove\RemoveReferenceCommandDefinition.cs (1)
16
=> parseResult.
GetValue
(Parent.ProjectOrFileArgument);
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 (9)
Commands\ConfigCommands\ConfigCommand.cs (4)
162
AllOrConfigKey = parseResult.
GetValue
(AllOrConfigKeyArgument),
183
ConfigKey = parseResult.
GetValue
(SetConfigKeyArgument),
184
ConfigValue = parseResult.
GetValue
(ConfigValueArgument),
203
ConfigKey = parseResult.
GetValue
(UnsetConfigKeyArgument),
Commands\Package\Download\PackageDownloadCommand.cs (1)
80
IReadOnlyList<PackageWithNuGetVersion> packages = parserResult.
GetValue
(packagesArguments) ?? [];
Commands\Package\Update\PackageUpdateCommand.cs (1)
52
IReadOnlyList<PackageWithVersionRange> packages = args.
GetValue
(packagesArguments) ?? [];
Commands\PackageSearch\PackageSearchCommand.cs (1)
116
SearchTerm = parserResult.
GetValue
(searchTerm),
Commands\Why\WhyCommand.cs (2)
128
Path = parseResult.
GetValue
(path)!,
129
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();