7 references to GetValue
aspire (1)
Commands\ConfigCommand.cs (1)
467var useJson = parseResult.GetValue<bool>("--json");
Aspire.Cli.Tests (5)
Commands\AgentInitClientSelectionTests.cs (2)
216Assert.Equal(Enum.Parse<AgentConfigurationScope>(expected), result.GetValue<AgentConfigurationScope>("--scope")); 252Assert.Equal(selection, result.GetValue<string?>("--agents"));
Commands\AgentInitCommandTests.cs (1)
201Assert.Equal(expected, result.GetValue<bool?>("--mcp"));
Commands\TerminalCommandViewerOptionTests.cs (2)
57var viewerValue = result.GetValue<bool>("--viewer"); 72var viewerValue = result.GetValue<bool>("--viewer");
Microsoft.DotNet.Cli.Utils (1)
MSBuildArgs.cs (1)
139return options.Any(o => o.Name == name) ? parseResult.GetValue<T>(name) : default;