90 references to Parse
aspire (3)
aspire-managed (1)
Aspire.Cli.Tests (43)
Commands\AgentTelemetryCommandTests.cs (2)
125var result = command.Parse(["agent", "telemetry", "--event-type", "reference_file_read", "--file-reference", fileReference]);
180var result = command.Parse(["agent", "telemetry", "--event-type", "not_a_real_event", "--skill-name", "bad name", "--file-reference", "/etc/passwd"]);
Commands\ParseResultHelperTests.cs (20)
101var parseResult = _command.Parse(commandLine);
114var parseResult = _command.Parse(["run", "--capture-profile-output", relativePath]);
126var parseResult = _command.Parse(["run", "--capture-profile-output", ""]);
138var parseResult = _command.Parse(["run", "--capture-profile-output=--"]);
153var parseResult = command.Parse(["test", "--value=--"]);
175var parentParseResult = command.Parse(["test", "--values=--flag"]);
183var childParseResult = command.Parse(["test", .. forwardedArguments.Tokens]);
194var parseResult = _command.Parse(["run", "-d", "--isolated"]);
208var parseResult = _command.Parse(
219var childParseResult = _command.Parse(["run", .. forwardedArguments.Tokens]);
233var parseResult = _command.Parse(["run", "--debug", "--secret", "value"]);
243var childParseResult = _command.Parse(["run", .. forwardedArguments.Tokens]);
255var parseResult = _command.Parse(["run", "--ApiKey", "sk-live-secret"]);
266var parseResult = _command.Parse(["run", "--debug", "--secret", "value"]);
276var parseResult = _command.Parse(["run", "--", "--ApiKey", "secret"]);
286var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis"]);
294var parseResult = _command.Parse(["run", "--apphost", "path/to/App.csproj"]);
302Assert.Equal(string.Empty, ParseResultHelper.GetLoggableArguments(_command.Parse([])));
306Assert.Equal(string.Empty, ParseResultHelper.GetLoggableArguments(_command.Parse([_command.Name])));
312var parseResult = _command.Parse(["run", "--apphost", "same-value", "--", "same-value"]);
Commands\RunCommandTests.cs (13)
66var result = command.Parse(["run", optionName, "E2E"]);
98var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]);
140var result = command.Parse(["run", "--detach", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]);
191var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "missing"]);
236var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "container"]);
272var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]);
1189var result = command.Parse(
4379var result = command.Parse(
4442var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--debug", "--", "--custom-arg", "value"]);
4470var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--debug", "--secret", "value"]);
4480var childParseResult = command.Parse(["run", .. options.Args]);
4735var result = command.Parse(args);
4787var childParseResult = command.Parse(forwardedArguments);
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Managed.Tests (3)
NuGet\RestoreCommandTests.cs (3)
42await command.Parse(["--package", "Fake.Package,1.0.0", "--no-nuget-org", "--output", outputDir, "--working-dir", tempDirPath]).InvokeAsync();
65await command.Parse(["--package", "Fake.Package,1.0.0", "--no-nuget-org", "--output", outputDir, "--working-dir", tempDirPath]).InvokeAsync();
100await command.Parse([
Aspire.RuntimeIdentifier.Tool (1)
Aspire.TerminalHost (1)
cdac-build-tool (1)
ConfigurationSchemaGenerator (1)
crossgen2 (1)
dotnet (4)
dotnet-aot (1)
dotnet-format (1)
dotnet-sourcelink (1)
dotnet-suggest (1)
dotnet-watch (3)
GenerateDocumentationAndConfigFiles (1)
ilasm (1)
ilc (1)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.MacOsPkg.Cli (1)
Microsoft.DotNet.VersionTools.Cli (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Microsoft.TemplateEngine.Cli (3)
NuGet.CommandLine.XPlat (1)
SelectTests (1)
System.CommandLine (1)
TypeScriptApiCompat (1)