941 references to Parse
Aspire.Cli.Tests (936)
CliBootstrapTests.cs (2)
230
var parseResult = command.
Parse
(commandLine);
251
var parseResult = command.
Parse
("ls");
Commands\AddCommandTests.cs (63)
31
var result = command.
Parse
("add --help");
45
var result = command.
Parse
("integration add --help");
74
var result = command.
Parse
("integration search redis --json");
105
var result = command.
Parse
("integration search --format json");
181
var result = command.
Parse
("integration list --format json");
224
var result = command.
Parse
(commandLine);
249
var result = command.
Parse
("integration list");
299
var result = command.
Parse
("integration search redis --format json");
345
var result = command.
Parse
("integration search rdis --format json");
432
var result = command.
Parse
($"integration search redis --apphost \"{appHostFile.FullName}\" --format json");
504
var result = command.
Parse
($"integration search redis --apphost \"{appHostFile.FullName}\" --format json");
591
var result = command.
Parse
($"integration search foundry --apphost \"{appHostFile.FullName}\" --format json");
686
var result = command.
Parse
($"integration search redis --apphost \"{appHostFile.FullName}\" --format json");
748
var result = command.
Parse
($"integration search redis --apphost \"{appHostFile.FullName}\" --format json");
797
var result = command.
Parse
($"integration search redis --apphost \"{appHostFile.FullName}\" --format json");
880
var result = command.
Parse
($"integration search foundry --apphost \"{appHostFile.FullName}\" --format json");
938
var result = command.
Parse
("integration list --format json");
991
var result = command.
Parse
("integration search azure --format json");
1061
var result = command.
Parse
("add");
1136
var result = command.
Parse
("add docker");
1219
var result = command.
Parse
("add docker --version 9.2.0");
1299
var result = command.
Parse
("add docker --version 9.2.0");
1374
var result = command.
Parse
("add redis --version 13.2.0");
1459
var result = command.
Parse
("add redis --version 13.2.0");
1530
var result = command.
Parse
($"add {integrationName}");
1604
var result = command.
Parse
("add redis --version 13.2.0");
1679
var result = command.
Parse
("add --version 13.2.0");
1750
var result = command.
Parse
("add --version 13.2.0");
1820
var result = command.
Parse
("add redis --version 13.2.0");
1897
var result = command.
Parse
("add redis --version 13.2.0");
1981
var result = command.
Parse
("add red");
2051
var result = command.
Parse
($"add redis --source {expectedSource}");
2086
var result = command.
Parse
("add");
2161
var result = command.
Parse
("add nonexistentpackage");
2569
var result = command.
Parse
($"add {packageId} --apphost \"{appHostFile.FullName}\"");
2641
var result = command.
Parse
($"add Aspire.Hosting.Azure.Storage --apphost \"{appHostFile.FullName}\"");
2699
var result = command.
Parse
("add redis");
2767
var result = command.
Parse
("add redis");
2932
var result = command.
Parse
("add redis");
2995
var result = command.
Parse
("add redis");
3045
var result = command.
Parse
($"add Aspire.Hosting.Foo --apphost \"{appHostFile.FullName}\"");
3095
var result = command.
Parse
($"add Aspire.Hosting.Redis --apphost \"{appHostFile.FullName}\"");
3145
var result = command.
Parse
($"add Aspire.Hosting.Foo --all --apphost \"{appHostFile.FullName}\"");
3191
var result = command.
Parse
($"integration list --apphost \"{appHostFile.FullName}\" --format json");
3239
var result = command.
Parse
($"integration list --apphost \"{appHostFile.FullName}\"");
3286
var result = command.
Parse
($"integration list --apphost \"{appHostFile.FullName}\"");
3335
var result = command.
Parse
($"integration search zzznomatch --apphost \"{appHostFile.FullName}\"");
3393
var result = command.
Parse
($"add Aspire.Hosting.Foo --apphost \"{appHostFile.FullName}\"");
3447
var result = command.
Parse
($"add Aspire.Hosting.Redis --apphost \"{appHostFile.FullName}\"");
3493
var result = command.
Parse
($"integration list --apphost \"{appHostFile.FullName}\" --format json");
3659
var result = command.
Parse
("add postgre");
3726
var result = command.
Parse
("add kube");
3779
var result = command.
Parse
("add kubernetes");
3836
var result = command.
Parse
("add kube");
3901
var result = command.
Parse
("add zzzzzzzzzz");
3955
var result = command.
Parse
("add postgre --version 9.2.0");
4007
var result = command.
Parse
("add nonexistentpackage --version 9.2.0");
4093
var result = command.
Parse
("add sql");
4174
var result = command.
Parse
("add sql --version 13.2.0");
4257
var result = command.
Parse
("add sql --version 13.2.0");
4345
var result = command.
Parse
("add nonexistentpackage --version 13.2.0");
4432
var result = command.
Parse
("add nonexistentpackage --version 13.2.0");
4509
var result = command.
Parse
("add azureapp");
Commands\AgentInitCommandTests.cs (25)
45
var result = command.
Parse
("agent init");
78
var result = command.
Parse
("agent init");
122
var result = command.
Parse
("agent init");
144
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills all");
203
var result = command.
Parse
("agent init");
249
var result = command.
Parse
("agent init");
313
var result = command.
Parse
("agent init");
360
var result = command.
Parse
("agent init");
379
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills {FakeAspireSkillsInstaller.AspireMonitoringSkillName}");
407
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills PLAYWRIGHT-CLI");
450
var result = command.
Parse
("agent init");
468
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations none --skills all");
488
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skills none");
504
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all");
551
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills {skillsArg}");
574
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills {FakeAspireSkillsInstaller.AspireOrchestrationSkillName}");
594
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations invalid --skills all");
610
var result = command.
Parse
("agent init");
642
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all");
763
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills none");
784
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations all --skills none");
800
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations none --skills all");
820
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations standard --skills {CommonAgentApplicators.AspireSkillName}");
912
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations none --skills none");
943
var result = command.
Parse
($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skill-locations none --skills none");
Commands\AgentMcpCommandTests.cs (2)
76
var parseResult = rootCommand.
Parse
(commandLine);
579
var parseResult = rootCommand.
Parse
("agent mcp --dashboard-url not-a-url");
Commands\AgentTelemetryCommandTests.cs (7)
30
var result = command.
Parse
("agent telemetry --event-type skill_invocation --client-name copilot-cli --session-id 11111111-1111-1111-1111-111111111111 --skill-name aspire --timestamp 2026-01-01T00:00:00Z");
62
var result = command.
Parse
("agent telemetry --event-type tool_invocation --tool-name aspire-list_resources");
93
var result = command.
Parse
($"agent telemetry --event-type reference_file_read --file-reference {longValue}");
151
var result = command.
Parse
("agent telemetry --event-type not_a_real_event --skill-name aspire");
198
var result = command.
Parse
("agent telemetry --event-type skill_invocation --some-future-flag value");
213
var result = command.
Parse
("agent telemetry");
245
var result = command.
Parse
("agent telemetry --event-type reference_file_read --file-reference aspire/references/deploy.md");
Commands\ApiCommandTests.cs (5)
24
var result = command.
Parse
("docs api");
41
var result = command.
Parse
("docs api list csharp");
58
var result = command.
Parse
("docs api search emulator --language typescript --format json");
75
var result = command.
Parse
("docs api get csharp/aspire.test.package/testtype");
92
var result = command.
Parse
("docs api get missing/id");
Commands\BaseCommandTests.cs (23)
42
var result = command.
Parse
(args);
68
var result = command.
Parse
("integration list --format json");
89
var result = command.
Parse
("stop");
115
var result = command.
Parse
("stop");
139
var result = command.
Parse
("stop");
160
var result = command.
Parse
("test");
217
var result = command.
Parse
(args);
243
var result = command.
Parse
("run");
280
var result = command.
Parse
("run");
316
var result = command.
Parse
("add SomePackage");
351
var result = command.
Parse
("run");
374
var result = command.
Parse
("ps");
403
var result = command.
Parse
("ps");
456
var result = command.
Parse
("run");
495
var result = command.
Parse
("run");
531
var result = command.
Parse
(args);
559
var result = command.
Parse
("run --apphost somepath");
587
var result = command.
Parse
($"run {optionName}={value}");
633
var result = command.
Parse
("run --custom-arg value");
659
var result = command.
Parse
("run -- --AppHost somepath");
680
var result = command.
Parse
("run --AppHost foo -- --AppHost bar");
699
var result = command.
Parse
("add --AppHost somepath");
720
var result = command.
Parse
("resource myresource mycommand --AppHost primary");
Commands\CacheCommandTests.cs (7)
22
var result = command.
Parse
("cache");
37
var result = command.
Parse
("cache --help");
58
var result = command.
Parse
("cache clear");
79
var result = command.
Parse
("cache clear");
109
var result = command.
Parse
("cache clear");
136
var result = command.
Parse
("cache clear");
156
var result = command.
Parse
("cache clear");
Commands\CertificatesCommandTests.cs (4)
27
var result = command.
Parse
("certs --help");
42
var result = command.
Parse
("certs clean --help");
57
var result = command.
Parse
("certs trust --help");
111
var result = command.
Parse
("certs trust --non-interactive");
Commands\ConfigCommandTests.cs (48)
88
var result = command.
Parse
("config");
102
var result = command.
Parse
("config");
116
var result = command.
Parse
("config set foo bar");
140
var setLlmsResult = command.
Parse
("config set docs.llmsTxtUrl http://localhost:4321/llms-small.txt");
144
var setSitemapResult = command.
Parse
("config set docs.api.sitemapUrl http://localhost:4321/sitemap-0.xml");
176
var result = command.
Parse
("config set foo.bar baz");
201
var result = command.
Parse
("config set foo.bar.baz hello");
231
var result1 = command.
Parse
("config set foo primitive");
236
var result2 = command.
Parse
("config set foo.bar nested");
261
var setResult = command1.
Parse
("config set testkey testvalue");
272
var getResult = command2.
Parse
("config get testkey");
287
var setResult = command1.
Parse
("config set level1.level2.level3 nestedvalue");
297
var getResult = command2.
Parse
("config get level1.level2.level3");
310
var result = command.
Parse
("config get nonexistent.key");
326
var setResult = command.
Parse
("config set deletekey deletevalue");
331
var deleteResult = command.
Parse
("config delete deletekey");
336
var getResult = command.
Parse
("config get deletekey");
351
var setResult = command.
Parse
("config set deep.nested.value test");
356
var deleteResult = command.
Parse
("config delete deep.nested.value");
380
var setResult1 = command.
Parse
("config set flatkey flatvalue");
384
var setResult2 = command.
Parse
("config set nested.key nestedvalue");
388
var setResult3 = command.
Parse
("config set deep.nested.key deepvalue");
393
var listResult = command.
Parse
("config list");
412
var setResult = command.
Parse
("config set testkey testvalue");
416
var listResult = command.
Parse
("config list");
438
var setResult = command.
Parse
("config set testkey testvalue");
442
var listResult = command.
Parse
("config list --all");
464
var listResult = command.
Parse
("config list");
486
var listResult = command.
Parse
("config list --all");
507
var listResult = command.
Parse
("config list --all");
531
var infoResult = command.
Parse
("config info --json");
576
var setResult = command.
Parse
($"config set {KnownFeatures.FeaturePrefix}.testFeature true");
594
var setResult = command.
Parse
($"config set {KnownFeatures.FeaturePrefix}.testFeature false");
618
var setResult = command.
Parse
($"config set {KnownFeatures.FeaturePrefix}.testFeature invalid");
651
var setResult = command.
Parse
($"config set {KnownFeatures.FeaturePrefix}.{KnownFeatures.ShowDeprecatedPackages} true");
684
var result = command.
Parse
("config set features:polyglotSupportEnabled true");
712
var result1 = command.
Parse
("config set features:polyglotSupportEnabled true");
717
var result2 = command.
Parse
("config set features.polyglotSupportEnabled false");
743
var result1 = command.
Parse
("config set features.polyglotSupportEnabled true");
748
var result2 = command.
Parse
("config set features:polyglotSupportEnabled false");
774
var setResult = command.
Parse
("config set features.polyglotSupportEnabled true");
779
var deleteResult = command.
Parse
("config delete features:polyglotSupportEnabled");
867
var result = command.
Parse
($"config set {key} AppHost.csproj");
897
var result = command.
Parse
($"config set {key} AppHost.csproj");
929
var result = command.
Parse
($"config set {key} AppHost.csproj --global");
954
var result = command.
Parse
($"config set -g overrideStagingFeed {stagingFeed}");
994
var result = command.
Parse
("config set appHostPath AppHost.csproj");
1012
var result = command.
Parse
("config set appHost.language typescript/nodejs");
Commands\DashboardRunCommandTests.cs (16)
39
var result = command.
Parse
("dashboard run");
56
var result = command.
Parse
("dashboard run --help");
79
var result = command.
Parse
($"dashboard run {args}");
92
var result = command.
Parse
("dashboard run --ASPNETCORE_URLS=http://localhost:9999");
144
var result = command.
Parse
("dashboard run");
163
var result = command.
Parse
("dashboard run");
196
var result = command.
Parse
("dashboard run");
220
var result = command.
Parse
("dashboard run");
253
var result = command.
Parse
($"dashboard run {cliArgs}");
273
var result = command.
Parse
("dashboard run");
297
var result = command.
Parse
("dashboard run");
317
var result = command.
Parse
("dashboard run --CUSTOM_SETTING=myvalue");
343
var result = command.
Parse
("dashboard run --frontend-url http://localhost:5000 --otlp-grpc-url http://localhost:9317 --otlp-http-url http://localhost:9318 --allow-anonymous --application-name TestApp --persistence Run --config-file-path /my/config.json");
372
var result = command.
Parse
("dashboard run");
403
var result = command.
Parse
("dashboard run");
460
var result = command.
Parse
("dashboard run");
Commands\DeployCommandTests.cs (10)
29
var result = command.
Parse
("deploy --help");
59
var result = command.
Parse
("deploy");
125
var result = command.
Parse
(invocation);
177
var result = command.
Parse
("deploy --apphost invalid.csproj");
211
var result = command.
Parse
("deploy --apphost valid.csproj");
245
var result = command.
Parse
("deploy --apphost valid.csproj");
313
var result = command.
Parse
("deploy");
385
var result = command.
Parse
("deploy");
456
var result = command.
Parse
($"deploy --output-path {testOutputPath}");
516
var result = command.
Parse
("deploy");
Commands\DescribeCommandTests.cs (29)
29
var result = command.
Parse
("describe --help");
43
var result = command.
Parse
("describe");
62
var result = command.
Parse
($"describe --format {format} --help");
80
var result = command.
Parse
($"describe --format {format} --help");
95
var result = command.
Parse
("describe --format invalid");
110
var result = command.
Parse
("describe --follow --help");
125
var result = command.
Parse
("describe --watch --help");
140
var result = command.
Parse
("resources --help");
155
var result = command.
Parse
("describe --follow --format json --help");
170
var result = command.
Parse
("describe myresource --help");
185
var result = command.
Parse
("describe myresource --follow --format json --help");
294
var result = command.
Parse
("describe --follow --format json");
377
var result = command.
Parse
("describe --follow --format json");
416
var result = command.
Parse
("describe --follow --format json");
454
var result = command.
Parse
("describe --follow --format json");
502
var result = command.
Parse
("describe --follow --format json --include-disabled-commands");
547
var result = command.
Parse
("describe --follow --format json");
595
var result = command.
Parse
("describe --follow");
628
var result = command.
Parse
("describe --follow --format json");
658
var result = command.
Parse
("describe --follow --format json");
682
var result = command.
Parse
("describe --follow --format json");
709
var result = command.
Parse
("describe --format json");
748
var result = command.
Parse
("describe --format json");
779
var result = command.
Parse
("describe --follow --format json");
809
var result = command.
Parse
("describe --format json");
835
var result = command.
Parse
("describe --format json --include-hidden");
862
var result = command.
Parse
("describe aspire-dashboard --format json");
887
var result = command.
Parse
("describe --follow --format json");
915
var result = command.
Parse
("describe --follow --format json --include-hidden");
Commands\DestroyCommandTests.cs (7)
28
var result = command.
Parse
("destroy --help");
57
var result = command.
Parse
("destroy --apphost invalid.csproj");
116
var result = command.
Parse
("destroy");
152
var result = command.
Parse
(commandLine);
215
var result = command.
Parse
(commandLine);
273
var result = command.
Parse
($"destroy --output-path {testOutputPath}");
326
var result = command.
Parse
("destroy --yes");
Commands\DoCommandTests.cs (23)
29
var result = command.
Parse
("do --help");
56
var result = command.
Parse
("do");
114
var result = command.
Parse
("do my-custom-step");
167
var result = command.
Parse
("do deploy");
220
var result = command.
Parse
("do publish");
278
var result = command.
Parse
("do my-step --output-path test-output");
310
var result = command.
Parse
("do my-step --apphost invalid.csproj");
395
var result = command.
Parse
(commandLine);
456
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
502
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
558
var result = command.
Parse
("do deploy --list-steps");
612
var result = command.
Parse
("do deploy --list-steps");
641
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
670
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
702
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
732
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
768
var exitCode = await command.
Parse
("do --list-steps --format json").InvokeAsync().DefaultTimeout();
824
var result = command.
Parse
("do deploy --list-steps");
839
var result = command.
Parse
("do --help");
877
var exitCode = await command.
Parse
("do deploy --format yaml").InvokeAsync().DefaultTimeout();
901
var exitCode = await command.
Parse
(commandLine).InvokeAsync().DefaultTimeout();
951
var result = command.
Parse
("do my-step --pipeline-log-level debug");
1006
var result = command.
Parse
("do my-step --log-level Warning");
Commands\DocsCommandTests.cs (10)
24
var result = command.
Parse
("docs");
42
var result = command.
Parse
("docs list");
59
var result = command.
Parse
("docs list --format json");
77
var result = command.
Parse
("docs search redis");
95
var result = command.
Parse
("docs search redis -n 3");
113
var result = command.
Parse
("docs search redis --format json");
130
var result = command.
Parse
("docs get redis-integration");
147
var result = command.
Parse
("docs get redis-integration --section \"Getting Started\"");
203
var result = command.
Parse
("docs get docs-smoke-test");
246
var result = command.
Parse
("docs get nonexistent-page");
Commands\DoctorCommandTests.cs (7)
29
var result = command.
Parse
("doctor --help");
148
var result = command.
Parse
("doctor --format json");
729
var result = command.
Parse
("doctor --self");
794
var result = command.
Parse
("doctor");
848
var result = command.
Parse
("doctor");
975
var result = command.
Parse
("doctor");
1023
var result = command.
Parse
(commandLine);
Commands\ExportCommandTests.cs (14)
61
var result = command.
Parse
($"export --output {outputPath}");
132
var result = command.
Parse
($"export --output {outputPath}");
165
var result = command.
Parse
($"export --apphost {appHostProjectPath} --output {outputPath}");
280
var result = command.
Parse
($"export --output {outputPath}");
342
var result = command.
Parse
($"export --output {outputPath}");
460
var result = command.
Parse
($"export redis --output {outputPath}");
518
var result = command.
Parse
($"export webfrontend --output {outputPath}");
578
var result = command.
Parse
($"export apiservice --output {outputPath}");
628
var result = command.
Parse
($"export --output {outputPath}");
670
var result = command.
Parse
($"export --include-hidden --output {outputPath}");
714
var result = command.
Parse
($"export aspire-dashboard --output {outputPath}");
750
var result = command.
Parse
($"export nonexistent --output {outputPath}");
789
var result = command.
Parse
($"export --dashboard-url http://localhost:18888 --api-key test-token --output {outputPath}");
836
var result = command.
Parse
($"export --output {outputPath}");
Commands\ExtensionInternalCommandTests.cs (8)
37
var result = command.
Parse
("extension --help");
51
var result = command.
Parse
("extension");
72
var result = command.
Parse
("extension get-apphosts");
120
var result = command.
Parse
("extension get-apphosts --nologo");
149
var result = command.
Parse
("extension get-apphosts");
188
var result = command.
Parse
("extension get-apphosts");
206
var result = command.
Parse
("extension get-apphosts");
220
var result = command.
Parse
("extension get-apphosts --help");
Commands\InitCommandTests.cs (44)
102
var parseResult = initCommand.
Parse
("init");
145
var parseResult = initCommand.
Parse
("init");
162
var parseResult = initCommand.
Parse
("init");
188
var parseResult = initCommand.
Parse
("init");
269
var parseResult = initCommand.
Parse
("init");
320
var parseResult = initCommand.
Parse
("init");
358
var parseResult = initCommand.
Parse
("init --source https://example.test/v3/index.json --version 13.0.0 --channel daily --suppress-agent-init");
393
var parseResult = initCommand.
Parse
("init");
423
var parseResult = initCommand.
Parse
("init --language typescript");
471
var parseResult = initCommand.
Parse
("init --language typescript");
518
var parseResult = initCommand.
Parse
("init --language typescript");
566
var parseResult = initCommand.
Parse
("init --language typescript");
583
var parseResult = command.
Parse
("init --non-interactive --skills none");
605
var parseResult = command.
Parse
("init --non-interactive --skill-locations none");
625
var parseResult = command.
Parse
($"init --non-interactive --skill-locations standard --skills {CommonAgentApplicators.AspireSkillName}");
648
var parseResult = initCommand.
Parse
("init");
683
var parseResult = initCommand.
Parse
("init");
731
var parseResult = initCommand.
Parse
("init");
773
var parseResult = initCommand.
Parse
("init");
861
var parseResult = initCommand.
Parse
("init");
914
var parseResult = initCommand.
Parse
("init");
969
var parseResult = initCommand.
Parse
("init");
1018
var parseResult = initCommand.
Parse
("init");
1054
var parseResult = initCommand.
Parse
("init");
1089
var parseResult = initCommand.
Parse
("init");
1125
var parseResult = initCommand.
Parse
("init");
1167
var parseResult = initCommand.
Parse
("init");
1198
var parseResult = initCommand.
Parse
("init");
1242
var parseResult = initCommand.
Parse
("init");
1294
var parseResult = initCommand.
Parse
("init");
1342
var parseResult = initCommand.
Parse
("init");
1396
var parseResult = initCommand.
Parse
("init");
1448
var parseResult = initCommand.
Parse
("init");
1518
var parseResult = initCommand.
Parse
("init");
1603
var parseResult = initCommand.
Parse
("init");
1671
var parseResult = initCommand.
Parse
("init");
1721
var parseResult = initCommand.
Parse
("init");
1767
var parseResult = initCommand.
Parse
("init");
1804
var parseResult = initCommand.
Parse
("init");
1853
var parseResult = initCommand.
Parse
("init");
1915
var parseResult = initCommand.
Parse
("init");
1966
var parseResult = initCommand.
Parse
("init");
2033
var parseResult = initCommand.
Parse
("init");
2080
var parseResult = initCommand.
Parse
("init");
Commands\LogsCommandTests.cs (39)
27
var result = command.
Parse
("logs --help");
129
var result = command.
Parse
($"logs --tail {tailValue}");
150
var result = command.
Parse
($"logs --tail {tailValue} --help");
167
var result = command.
Parse
("logs myresource");
187
var result = command.
Parse
($"logs --format {format} --help");
205
var result = command.
Parse
($"logs --format {format} --help");
220
var result = command.
Parse
("logs --format invalid");
236
var result = command.
Parse
("logs --follow --tail 50 --help");
251
var result = command.
Parse
("logs myresource --follow --tail 100 --format json --help");
267
var result = command.
Parse
("logs -f -n 10 --help");
381
var result = command.
Parse
("logs --format json");
411
var result = command.
Parse
("logs");
438
var result = command.
Parse
($"logs {resourceName} --format json");
460
var result = command.
Parse
("logs --format json --timestamps");
498
var result = command.
Parse
("logs --format json");
537
var result = command.
Parse
("logs --timestamps");
559
var result = command.
Parse
("logs");
595
var result = command.
Parse
("logs");
627
var result = command.
Parse
("logs --format json");
649
var result = command.
Parse
("logs --format json");
674
var result = command.
Parse
("logs --format json --include-hidden");
699
var result = command.
Parse
("logs aspire-dashboard --format json");
784
var result = command.
Parse
("logs --format json");
893
var result = command.
Parse
("logs --follow");
915
var result = command.
Parse
("logs --follow --format json");
938
var result = command.
Parse
("logs --follow --format json");
960
var result = command.
Parse
("logs --follow --format json");
1050
var result = command.
Parse
("logs redis --search timeout --format json");
1081
var result = command.
Parse
("logs redis --search Ready --format json");
1110
var result = command.
Parse
("logs redis --search nonexistent --format json");
1141
var result = command.
Parse
("logs redis --search \"Connection timeout\" --format json");
1173
var result = command.
Parse
("logs redis --search level:error --format json");
1208
var result = command.
Parse
("logs redis --search Ready --tail 2 --format json");
1256
var result = command.
Parse
("logs redis --search Ready --tail 2 --format json");
1292
var result = command.
Parse
("logs redis --search timeout --tail 1 --format json");
1337
var result = command.
Parse
("logs --search timeout --tail 1 --format json");
1386
var result = command.
Parse
("logs --follow --search timeout");
1415
var result = command.
Parse
("logs redis --follow --tail 10 --search timeout");
1460
var result = command.
Parse
("logs redis --follow --tail 10 --search timeout");
Commands\LsCommandTests.cs (22)
33
var result = command.
Parse
("ls --help");
48
var result = command.
Parse
("ls");
66
var result = command.
Parse
($"ls --format {format}");
81
var result = command.
Parse
("ls --format invalid");
112
var result = command.
Parse
("ls --format json");
152
var result = command.
Parse
("ls --format json");
193
var result = command.
Parse
("ls --format json");
234
var result = command.
Parse
("ls --format json");
266
var result = command.
Parse
("ls --format json");
307
var result = command.
Parse
("ls --format json --stream");
349
var result = command.
Parse
("ls --format json --stream");
394
var result = command.
Parse
("ls --format json --stream");
441
var result = command.
Parse
("ls --format json --stream");
485
var result = command.
Parse
("ls --format json --stream");
507
var result = command.
Parse
("ls --stream");
539
var result = command.
Parse
("ls");
578
var result = command.
Parse
("ls");
646
var result = command.
Parse
("ls");
689
var result = command.
Parse
("ls");
718
var result = command.
Parse
("ls");
747
var result = command.
Parse
("ls --all");
785
var result = command.
Parse
("ls --format json --all");
Commands\McpCommandTests.cs (7)
21
var result = command.
Parse
("mcp");
36
var result = command.
Parse
("mcp --help");
50
var result = command.
Parse
("mcp start --help");
108
var result = command.
Parse
("agent");
123
var result = command.
Parse
("agent --help");
137
var result = command.
Parse
("agent mcp --help");
151
var result = command.
Parse
("agent init --help");
Commands\NewCommandChannelResolutionTests.cs (2)
111
var parseResult = newCommand.
Parse
("new aspire-starter --name TestApp --output ./output --use-redis-cache --test-framework None");
605
var parseResult = newCommand.
Parse
($"new fake-template --name TestApp --output ./captured{channelArg}{versionArg}{sourceArg}");
Commands\NewCommandTemplateConfigPersistenceTests.cs (2)
293
var parseResult = newCommand.
Parse
(string.Join(" ", commandArguments));
400
var parseResult = newCommand.
Parse
(
Commands\NewCommandTests.cs (74)
38
var result = command.
Parse
("new --help");
112
var configResult = configCommand.
Parse
($"config set -g overrideStagingFeed {stagingFeed}");
141
var result = command.
Parse
($"new {KnownTemplateId.CSharpEmptyAppHost} --language csharp --name TemplateOut --output ./TemplateOut --localhost-tld false");
169
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
193
var result = command.
Parse
($"new aspire-starter --use-redis-cache --test-framework {testFramework}");
249
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
282
var result = command.
Parse
("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None");
314
var result = command.
Parse
("new aspire-starter --output notsrc --use-redis-cache --test-framework None");
392
var result = command.
Parse
("new aspire-starter --channel stable --use-redis-cache --test-framework None");
469
var result = command.
Parse
("new aspire-starter --channel stable --use-redis-cache --test-framework None");
546
var result = command.
Parse
("new aspire-starter --channel pr-12345 --name TestApp --output ./output --use-redis-cache --test-framework None");
585
var result = command.
Parse
("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None");
617
var result = command.
Parse
("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None --version 9.2.0");
649
var result = command.
Parse
("new");
690
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
801
var result = command.
Parse
("new aspire-starter --name TestApp --output ./output");
864
var result = command.
Parse
($"new aspire-starter --use-redis-cache --test-framework None");
923
var result = command.
Parse
("new --name TestApp --output ./output");
993
var result = command.
Parse
("new --name TestApp --output ./output");
1028
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
1089
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
1152
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
1180
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init");
1243
var result = command.
Parse
($"new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --channel staging --source {sourceOverride}");
1288
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --channel staging --source relative-feed");
1337
var result = command.
Parse
($"new aspire-empty --name TestApp --output ./output --language {language} --localhost-tld false --suppress-agent-init --source \"{sourceOverride}\"");
1361
var result = command.
Parse
($"new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --source \"{sourceOverride}\"");
1395
var result = command.
Parse
($"new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init --source {sourceOverride}");
1429
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init --source nuget.org");
1463
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init");
1502
var result = command.
Parse
("new aspire-java-empty --name TestApp --output ./output --localhost-tld false");
1538
var result = command.
Parse
("new aspire-py-empty --name TestApp --output ./output --localhost-tld false");
1555
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --localhost-tld false");
1584
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --localhost-tld false --suppress-agent-init");
1609
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --localhost-tld false --suppress-agent-init");
1643
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --localhost-tld --suppress-agent-init");
1717
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
1758
var result = command.
Parse
("new aspire-ts-empty --name TestApp --output ./output --localhost-tld false");
1806
var result = command.
Parse
("new aspire-ts-empty --name TestApp --output ./output --channel stable --localhost-tld false");
1847
var result = command.
Parse
("new aspire-ts-empty --name TestApp --localhost-tld false");
1925
var result = command.
Parse
("new aspire-ts-empty --name TestApp --output ./output");
2004
var result = command.
Parse
("new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false");
2069
var result = command.
Parse
("new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false");
2128
var result = command.
Parse
($"new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false --source \"{sourceOverride}\"");
2177
var result = command.
Parse
($"new aspire-starter --name TestApp --output ./output --source {sourceOverride} --use-redis-cache --test-framework None");
2233
var result = command.
Parse
($"new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false --source {sourceOverride}");
2261
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
2286
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --skill-locations none");
2311
var result = command.
Parse
($"new aspire-empty --name TestApp --output ./output --skill-locations standard --skills {CommonAgentApplicators.AspireSkillName}");
2359
var result = command.
Parse
("new");
2405
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2448
var result = command.
Parse
($"new aspire-starter --name MyProject --output {Path.Combine(workspace.WorkspaceRoot.FullName, "my-project")} --use-redis-cache --test-framework None");
2491
var result = command.
Parse
($"new aspire-starter --name MyProject --output {outputDir} --use-redis-cache --test-framework None --suppress-agent-init");
2538
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2577
var result = command.
Parse
("new aspire-ts-empty --name TestApp --output ./output");
2632
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2691
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2748
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2810
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
2872
var result = command.
Parse
($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false");
2935
var result = command.
Parse
($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false");
3013
var result = command.
Parse
(
3088
var result = command.
Parse
($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false");
3157
var result = command.
Parse
($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false");
3211
var result = command.
Parse
($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false");
3237
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --suppress-agent-init");
3263
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output --suppress-agent-init=false");
3291
var result = command.
Parse
("new aspire-empty --name TestApp --output ./output");
3325
var result = command.
Parse
($"new aspire-starter --name TestApp --output {existingDir.FullName} --use-redis-cache --test-framework None");
3347
var result = command.
Parse
($"new aspire-starter --name TestApp --output {emptyDir.FullName} --use-redis-cache --test-framework None");
3382
var result = command.
Parse
("new aspire-starter --use-redis-cache --test-framework None");
3407
var result = command.
Parse
($"new aspire-starter --name TestApp --output {invalidPath} --use-redis-cache --test-framework None");
3453
var result = command.
Parse
("new aspire-starter --name TestApp --output . --use-redis-cache --test-framework None");
3512
var result = command.
Parse
("new aspire-starter");
Commands\OptionWithLegacyTests.cs (2)
19
var result = command.
Parse
("test --new-name primary-value --old-name legacy-value");
34
var result = command.
Parse
("test --old-name legacy-value");
Commands\PsCommandTests.cs (21)
40
var result = command.
Parse
("ps --help");
55
var result = command.
Parse
("ps");
74
var result = command.
Parse
($"ps --format {format}");
92
var result = command.
Parse
($"ps --format {format}");
107
var result = command.
Parse
("ps --format invalid");
157
var result = command.
Parse
("ps --format json");
209
var result = command.
Parse
("ps --format json");
247
var result = command.
Parse
("ps --format json");
293
var result = command.
Parse
("ps --format json");
335
var result = command.
Parse
("ps --format json");
381
var result = command.
Parse
("ps");
414
var result = command.
Parse
("ps");
455
var result = command.
Parse
("ps");
478
var result = command.
Parse
("ps --format json");
514
var result = command.
Parse
("ps --format json");
554
var result = command.
Parse
("ps --format json --follow");
571
var result = command.
Parse
("ps --follow");
619
var result = command.
Parse
("ps --format json --follow");
663
var result = command.
Parse
("ps --format json");
710
var result = command.
Parse
("ps --format json");
749
var result = command.
Parse
("ps --format json");
Commands\PublishCommandPromptingIntegrationTests.cs (20)
47
var result = command.
Parse
("publish");
93
var result = command.
Parse
("publish");
145
var result = command.
Parse
("publish");
192
var result = command.
Parse
("publish");
238
var result = command.
Parse
("publish");
287
var result = command.
Parse
("publish");
322
var result = command.
Parse
("publish");
370
var result = command.
Parse
("publish");
449
var result = command.
Parse
("publish");
517
var result = command.
Parse
("publish");
569
var result = command.
Parse
("publish");
624
var result = command.
Parse
("publish");
695
var result = command.
Parse
("publish --debug");
739
var result = command.
Parse
("publish");
782
var result = command.
Parse
("publish");
831
var result = command.
Parse
("publish");
877
var result = command.
Parse
("publish");
917
var result = command.
Parse
("publish");
963
var result = command.
Parse
("publish");
997
var result = command.
Parse
("publish");
Commands\PublishCommandTests.cs (6)
24
var result = command.
Parse
("publish --help");
52
var result = command.
Parse
("publish --apphost invalid.csproj");
83
var result = command.
Parse
("publish --apphost valid.csproj");
114
var result = command.
Parse
("publish --apphost valid.csproj");
157
var result = command.
Parse
("publish --apphost valid.csproj");
226
var result = command.
Parse
("publish");
Commands\ResourceCommandHelpParserTests.cs (4)
18
command.
Parse
("resource web wait-for-browser --help"),
35
command.
Parse
("resource web wait-for-browser --apphost ./AppHost/AppHost.csproj --help"),
53
command.
Parse
("resource web wait-for-browser --project ./AppHost/AppHost.csproj --help"),
79
command.
Parse
(commandLine),
Commands\ResourceCommandTests.cs (72)
30
var result = command.
Parse
("resource --help");
62
var result = command.
Parse
("resource web --non-interactive --help");
93
var result = command.
Parse
("resource web --help");
118
var result = command.
Parse
("resource web --help");
141
var result = command.
Parse
("resource web --help");
182
var result = command.
Parse
($"""resource web --apphost "{appHostDirectory.FullName}" --help""");
231
var result = command.
Parse
($"""resource web --apphost "{appHostProjectFile.FullName}" --help""");
261
var result = command.
Parse
("resource hidden-worker --include-hidden --help");
277
var result = command.
Parse
("resource");
296
var result = command.
Parse
($"""resource {arguments}""");
313
var result = command.
Parse
("resource myresource");
333
var result = command.
Parse
($"""resource myresource {arguments}""");
350
var result = command.
Parse
("resource myresource my-command --help");
364
var result = command.
Parse
("resource myresource my-command --apphost /path/to/project.csproj --help");
386
var result = command.
Parse
($"resource myresource {commandName} --help");
418
var result = command.
Parse
($"resource myresource {commandName}");
457
var result = command.
Parse
("resource myresource my-command");
482
var result = command.
Parse
("resource myresource start --apphost /path/to/project.csproj --help");
505
var result = command.
Parse
("resource myresource Start");
542
var result = command.
Parse
("""resource web-browser-automation fill-browser "#name" Aspire""");
569
var result = command.
Parse
("""resource web-browser-automation click-browser""");
606
var result = command.
Parse
("""resource web-browser-automation wait-for-browser "--text=Submitted Aspire!" --timeoutMilliseconds=500""");
644
var result = command.
Parse
("resource mydb configure -- --AppHost primary");
679
var result = command.
Parse
("resource greeting parameter-set --value \"Hello world\"");
739
var result = command.
Parse
("""resource web-browser-automation navigate-browser "https://example.com/?q=aspire" """);
766
var result = command.
Parse
("""resource web-browser-automation click-browser "#submit" extra""");
793
var result = command.
Parse
("""resource web-browser-automation click-browser --selector "#submit" --count 2""");
820
var result = command.
Parse
("""resource web-browser-automation configure --verbose""");
840
var result = command.
Parse
("""resource web-browser-automation configure -- --selector "#submit" """);
876
var result = command.
Parse
("""resource web-browser-automation wait-for-browser --timeout-milliseconds 500""");
904
var result = command.
Parse
("""resource web-browser-automation Configure --message hello""");
940
var result = command.
Parse
("""resource web-browser-automation configure --timeout-milliseconds=500 --proxy""");
971
var result = command.
Parse
($"""resource web-browser-automation configure {arguments}""");
1006
var result = command.
Parse
("""resource web-browser-automation configure --flavor chocolate""");
1042
var result = command.
Parse
("""resource web-browser-automation configure --flavor strawberry""");
1072
var result = command.
Parse
("""resource web-browser-automation configure --unknown value""");
1098
var result = command.
Parse
("""resource web-browser-automation configure --mm ss""");
1125
var result = command.
Parse
("""resource web-browser-automation configure --proxy maybe""");
1154
var result = command.
Parse
("""resource web-browser-automation configure --save-to-user-secrets true""");
1194
var result = command.
Parse
("""resource web-browser-automation configure --timeout-seconds 0""");
1229
var result = command.
Parse
("resource myresource my-command");
1262
var result = command.
Parse
("""resource web configure""");
1298
var result = command.
Parse
("""resource web-browser-automation configure --flavor strawberry""");
1328
var result = command.
Parse
("""resource web-browser-automation configure""");
1361
var result = command.
Parse
($"""resource web-browser-automation configure {arguments}""");
1390
var result = command.
Parse
("""resource web-browser-automation configure --timeoutMilliseconds 1 --timeout-milliseconds 2""");
1419
var result = command.
Parse
("""resource web-browser-automation configure --message first --message second""");
1449
var result = command.
Parse
("""resource web-browser-automation wait-for-browser --timeout-milliseconds 500""");
1481
var result = command.
Parse
("""resource web-browser-automation wait-for-browser""");
1519
var result = command.
Parse
("""resource web-browser-automation wait-for-browser --timeout-milliseconds not-a-number""");
1555
var result = command.
Parse
("""resource web-browser-automation fill-browser --selector "#name" Aspire""");
1590
var result = command.
Parse
("""resource web-browser-automation configure -- --log-level Debug""");
1619
var result = command.
Parse
("""resource web-browser-automation configure -- --message "from delimiter" --timeout-milliseconds 10""");
1648
var result = command.
Parse
("resource hidden-worker configure --include-hidden -- --message \"from hidden resource\"");
1677
var result = command.
Parse
("""resource web-browser-automation configure --log-level Debug""");
1712
var result = command.
Parse
("""resource web-browser-automation configure --no-proxy localhost""");
1756
var result = command.
Parse
("""resource web-browser-automation configure --load-arguments -- --browser Chrome""");
1800
var result = command.
Parse
("""resource web-browser-automation configure --load-arguments -- --browser Chrome""");
1836
var result = command.
Parse
("""resource web-browser-automation configure --load-arguments -- --browser Chrome""");
1875
var result = command.
Parse
("""resource argument-commands dependent-arguments --load-arguments -- --category fruit""");
1909
var result = command.
Parse
("""resource argument-commands dependent-arguments -- --category=fruit --item=banana --quantity=2 --priority=express""");
1949
var result = command.
Parse
("""resource web-browser-automation configure --no-proxy""");
1966
var result = command.
Parse
("""resource myresource --help""");
2005
var result = command.
Parse
("""resource web-browser-automation wait-for-browser --help""");
2039
var result = command.
Parse
("""resource web-browser-automation wait-for-browser --help -- --selector #main""");
2069
var result = command.
Parse
("""resource web-browser-automation custom-command -- --help""");
2107
var result = command.
Parse
("""resource web-browser-automation configure --help""");
2137
var result = command.
Parse
("""resource web-browser-automation configure --help""");
2174
var result = command.
Parse
("""resource web-browser-automation configure --help""");
2195
var result = command.
Parse
("""resource web-browser-automation configure --help""");
2221
var result = command.
Parse
("""resource web-browser-automation configure --help""");
2272
var result = command.
Parse
("""resource argument-commands all-argument-types --help""");
Commands\RestoreCommandTests.cs (2)
39
var result = command.
Parse
($"restore --apphost {appHostFile.FullName}");
74
var result = command.
Parse
($"restore --apphost {appHostFile.FullName}");
Commands\RootCommandTests.cs (9)
31
var result = command.
Parse
("--version");
54
var result = command.
Parse
("-v");
79
var result = command.
Parse
("--version");
130
var result = command.
Parse
("--version");
188
var result = command.
Parse
("--help");
202
var result = command.
Parse
("--nologo --help");
221
var result = command.
Parse
("--help");
241
var result = command.
Parse
("run --capture-profile --capture-profile-output profile.zip --capture-profile-delay 1");
322
var result = command.
Parse
("--help");
Commands\RunCommandTests.cs (57)
50
var result = command.
Parse
("run --help");
296
var result = command.
Parse
("run");
351
var result = command.
Parse
("run");
405
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
487
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
588
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
686
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
753
var result = command.
Parse
("run");
774
var result = command.
Parse
("run");
804
var result = command.
Parse
("run");
822
var result = command.
Parse
("run");
839
var result = command.
Parse
("run --apphost /tmp/doesnotexist.csproj");
903
var result = command.
Parse
($"run --apphost {appHostProjectFile.FullName}");
933
var result = command.
Parse
("run");
963
var result = command.
Parse
("run");
992
var result = command.
Parse
($"run --apphost {appHostProjectFile.FullName}");
1052
var result = command.
Parse
($"run --apphost {appHostProjectFile.FullName}");
1075
var result = command.
Parse
("run --detach");
1105
var parentResult = parentCommand.
Parse
($"run --detach --apphost {appHostFile.FullName}");
1144
var childResult = childCommand.
Parse
("run");
1220
var result = command.
Parse
("run");
1326
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1396
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1464
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1521
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1578
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1641
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1708
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1769
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1821
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
1893
var result = command.
Parse
($"run --apphost {appHostFile.FullName}");
2050
var result = command.
Parse
("run");
2122
var result = command.
Parse
("run");
2180
var result = command.
Parse
("run");
2228
var result = command.
Parse
("run --capture-profile");
2271
var result = command.
Parse
("run --capture-profile");
2322
var result = command.
Parse
("run --capture-profile");
2373
var result = command.
Parse
("run");
2484
var result = command.
Parse
("run");
2590
var result = command.
Parse
("run");
2660
var result = command.
Parse
("run");
2729
var result = command.
Parse
("run --start-debug-session");
2789
var result = command.
Parse
("run");
2853
var result = command.
Parse
("run");
2920
var result = command.
Parse
("run");
2979
var result = command.
Parse
("run");
3034
var result = command.
Parse
("run");
3091
var result = command.
Parse
("run");
3150
var result = command.
Parse
("run");
3557
var result = command.
Parse
("run --no-build");
3638
var result = command.
Parse
("run --isolated");
3699
var result = command.
Parse
("run --no-build");
3715
var result = command.
Parse
("run -- --custom-arg value --launch-profile E2E");
4344
var result = command.
Parse
(explicitAppHost ? $"run --apphost \"{appHostFile.FullName}\"" : "run");
4565
var result = command.
Parse
("run --non-interactive");
4638
var result = command.
Parse
("run --no-build");
4693
var result = command.
Parse
(args);
Commands\Sdk\SdkExportCommandTests.cs (1)
352
return await command.
Parse
(commandLine).InvokeAsync().DefaultTimeout();
Commands\SdkCommandTests.cs (2)
21
var result = command.
Parse
("sdk");
36
var result = command.
Parse
("sdk --help");
Commands\SdkDumpCommandTests.cs (15)
31
var result = command.
Parse
("sdk dump --help");
53
var result = command.
Parse
($"sdk dump --format {format}");
66
var result = command.
Parse
("sdk dump /nonexistent/path/to/integration.csproj");
81
var result = command.
Parse
("sdk dump @13.2.0");
96
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@");
111
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@not-a-version!!!");
126
var result = command.
Parse
("sdk dump some-random-string");
141
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@13.2.0");
154
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@13.2.0 Aspire.Hosting.PostgreSQL@13.2.0");
167
var result = command.
Parse
("sdk dump --format ci --output-directory ./ats Aspire.Hosting.Redis@13.2.0");
180
var result = command.
Parse
("sdk dump --format ci --output ./all.ats.txt --output-directory ./ats Aspire.Hosting.Redis@13.2.0");
195
var result = command.
Parse
("sdk dump --output-directory ./ats Aspire.Hosting.Redis@13.2.0");
210
var result = command.
Parse
("sdk dump --format ci --output-directory ./ats");
225
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@13.2.0-preview.1");
240
var result = command.
Parse
("sdk dump Aspire.Hosting.Redis@@13.2.0");
Commands\SdkInstallerTests.cs (6)
46
var result = command.
Parse
("run");
71
var result = command.
Parse
("add");
94
var result = command.
Parse
("new aspire-starter");
133
var result = command.
Parse
("publish");
171
var result = command.
Parse
("deploy");
193
var result = command.
Parse
("run");
Commands\SecretCommandTests.cs (2)
35
var result = command.
Parse
($"secret path --apphost \"{appHostFile.FullName}\"");
61
var result = command.
Parse
($"secret path --apphost \"{appHostFile.FullName}\"");
Commands\StartCommandTests.cs (28)
33
var result = command.
Parse
("start --help");
53
var result = command.
Parse
("start --help");
70
var result = command.
Parse
("start --no-build --help");
84
var result = command.
Parse
("start --format json --help");
98
var result = command.
Parse
("start --isolated --help");
181
var result = command.
Parse
("start");
199
var result = command.
Parse
("start -- --custom-arg value --launch-profile E2E");
285
var result = command.
Parse
("start");
315
var result = command.
Parse
("start --format json");
360
var result = command.
Parse
($"start --apphost {appHostFile.FullName}");
476
var result = command.
Parse
("start");
505
var result = command.
Parse
($"start --apphost {appHostFile.FullName} --start-debug-session");
530
var result = provider.GetRequiredService<RootCommand>().
Parse
($"start --apphost {appHostFile.FullName}");
568
var result = command.
Parse
($"start --apphost {appHostFile.FullName}");
604
var result = command.
Parse
(string.Format(CultureInfo.InvariantCulture, commandTemplate, appHostFile.FullName));
624
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("start")));
625
Assert.True(AppHostLauncher.ResolveIsolated(command.
Parse
("start --isolated")));
626
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("start --isolated false")));
627
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("run")));
628
Assert.True(AppHostLauncher.ResolveIsolated(command.
Parse
("run --isolated")));
629
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("run --isolated false")));
643
Assert.Equal(expected, AppHostLauncher.GetExplicitIsolated(command.
Parse
(commandLine)));
656
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("start")));
657
Assert.True(AppHostLauncher.ResolveIsolated(command.
Parse
("start --isolated")));
658
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("start --isolated false")));
659
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("run")));
660
Assert.True(AppHostLauncher.ResolveIsolated(command.
Parse
("run --isolated")));
661
Assert.False(AppHostLauncher.ResolveIsolated(command.
Parse
("run --isolated false")));
Commands\StopCommandTests.cs (33)
37
var result = command.
Parse
("stop --help");
52
var result = command.
Parse
("stop myresource");
73
var result = command.
Parse
("stop --apphost missing-directory");
104
var result = command.
Parse
($"stop --apphost \"{appHostDirectory.FullName}\"");
138
var result = command.
Parse
("stop --all");
174
var result = command.
Parse
("stop --all");
210
var result = command.
Parse
("stop");
263
var result = command.
Parse
("stop");
297
var result = command.
Parse
($"stop --apphost \"{appHostFile.FullName}\"");
338
var result = command.
Parse
("stop");
377
var result = command.
Parse
("stop");
418
var result = command.
Parse
("stop --all");
459
var result = command.
Parse
(commandLine);
492
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
526
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
572
var result = command.
Parse
("stop --force");
610
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
644
var result = command.
Parse
("stop --force");
683
var result = command.
Parse
("stop --force");
720
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
757
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
797
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
836
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
880
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
922
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
964
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
1002
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
1040
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
1074
var result = command.
Parse
($"stop --force --apphost \"{appHostFile.FullName}\"");
1111
var result = command.
Parse
("stop --force");
1149
var result = command.
Parse
("stop --force");
1169
var result = command.
Parse
("stop --force --all");
1208
var result = command.
Parse
("stop");
Commands\TelemetryCommandTests.cs (2)
30
var result = command.
Parse
("otel");
288
var result = command.
Parse
($"otel {otelCommand} --dashboard-url http://localhost:18888");
Commands\TelemetryLogsCommandTests.cs (17)
30
var result = command.
Parse
("otel logs");
48
var result = command.
Parse
($"telemetry logs --limit {limitValue}");
74
var result = command.
Parse
("otel logs");
109
var result = command.
Parse
("otel logs");
139
var result = command.
Parse
("otel logs");
219
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888");
271
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888 --api-key my-secret-key");
293
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj");
316
var result = command.
Parse
("otel logs --dashboard-url not-a-url");
354
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888");
397
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888");
436
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888");
466
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888/login?t=sometoken");
506
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888");
562
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888/login?t=abc123");
644
var result = command.
Parse
("otel logs --format json --dashboard-url http://localhost:18888");
710
var result = command.
Parse
("otel logs --dashboard-url http://localhost:18888 --search timeout");
Commands\TelemetrySpansCommandTests.cs (11)
29
var result = command.
Parse
("otel spans");
47
var result = command.
Parse
($"telemetry spans --limit {limitValue}");
73
var result = command.
Parse
("otel spans");
108
var result = command.
Parse
("otel spans");
192
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888");
216
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj");
254
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888");
294
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888");
378
var result = command.
Parse
("otel spans --format json --dashboard-url http://localhost:18888");
449
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888 --search \"GET /index\"");
496
var result = command.
Parse
("otel spans --dashboard-url http://localhost:18888 --search \"duration:>=50.5\"");
Commands\TelemetryTracesCommandTests.cs (13)
31
var result = command.
Parse
("otel traces");
129
var result = command.
Parse
("otel traces --format json -n 5");
215
var result = command.
Parse
("otel traces --format json -n 5 --dashboard-url http://dashboard.dev.localhost:18888");
244
var result = command.
Parse
($"telemetry traces --limit {limitValue}");
270
var result = command.
Parse
("otel traces");
321
var result = command.
Parse
("otel traces");
437
var result = command.
Parse
("otel traces --dashboard-url http://localhost:18888");
461
var result = command.
Parse
("otel traces --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj");
499
var result = command.
Parse
("otel traces --dashboard-url http://localhost:18888");
582
var result = command.
Parse
("otel traces --format json --dashboard-url http://localhost:18888");
666
var result = command.
Parse
("otel traces --trace-id abc1234567890def --format json --dashboard-url http://localhost:18888");
715
var result = command.
Parse
("otel traces --dashboard-url http://localhost:18888 --search frontend");
762
var result = command.
Parse
("otel traces --dashboard-url http://localhost:18888 --search \"duration:>=50.5\"");
Commands\TerminalCommandTests.cs (17)
24
var result = command.
Parse
("terminal --help");
40
var result = command.
Parse
("terminal");
54
var result = command.
Parse
("terminal attach");
68
var result = command.
Parse
("terminal attach myresource");
88
var result = command.
Parse
("terminal attach myresource");
108
var result = command.
Parse
("terminal attach does-not-exist");
133
var result = command.
Parse
("terminal attach myresource");
158
var result = command.
Parse
("terminal attach myresource");
199
var result = command.
Parse
("terminal attach myresource --replica 99");
238
var result = command.
Parse
("terminal attach myresource");
284
var result = command.
Parse
("terminal attach myresource");
301
var result = command.
Parse
("terminal ps");
324
var result = command.
Parse
("terminal ps");
347
var result = command.
Parse
("terminal ps");
393
var result = command.
Parse
("terminal ps");
427
var result = command.
Parse
("terminal ps --format json");
549
var result = command.
Parse
("terminal ps --format json --verbose");
Commands\TerminalCommandViewerOptionTests.cs (3)
26
var result = command.
Parse
("terminal attach --help");
54
var result = command.
Parse
("terminal attach myresource");
69
var result = command.
Parse
("terminal attach myresource --viewer");
Commands\UpdateCommandTests.cs (51)
39
var result = command.
Parse
("update --help");
72
var result = command.
Parse
(commandLine);
124
var result = command.
Parse
($"update --apphost {appHostProjectFile.FullName}");
170
var result = command.
Parse
($"update --apphost AppHost.csproj");
283
var result = command.
Parse
("update");
360
var result = command.
Parse
("update --apphost AppHost.csproj");
422
var result = command.
Parse
("update --apphost apphost.ts");
481
var result = command.
Parse
("update --apphost apphost.ts");
536
var result = command.
Parse
("update --apphost apphost.ts");
613
var result = command.
Parse
("update --apphost AppHost.csproj");
692
var result = command.
Parse
("update --apphost AppHost.csproj");
769
var result = command.
Parse
("update --apphost AppHost.csproj");
812
var result = command.
Parse
("update --apphost AppHost.csproj");
855
var result = command.
Parse
("update --apphost AppHost.csproj --yes");
929
var result = command.
Parse
("update --apphost AppHost.csproj");
1002
var result = command.
Parse
("update --apphost AppHost.csproj");
1036
var result = command.
Parse
("update --apphost AppHost.csproj --migrate --yes");
1072
var result = command.
Parse
("update --apphost AppHost.csproj --migrate");
1099
var result = command.
Parse
("update --apphost AppHost.csproj --migrate --yes");
1173
var result = command.
Parse
("update --self");
1205
var result = command.
Parse
("update --self");
1240
var result = command.
Parse
("update --self");
1364
var result = command.
Parse
(commandLine);
1395
var result = command.
Parse
("update --self");
1433
var result = command.
Parse
("update");
1477
var result = command.
Parse
("update --self --channel daily");
1513
var result = command.
Parse
("update --self --channel staging");
1557
var result = command.
Parse
("update --self --channel staging");
1602
var result = command.
Parse
("update --self --quality daily");
1643
var result = command.
Parse
("update --self --channel daily");
1706
var result = command.
Parse
("update --channel daily");
1771
var result = command.
Parse
("update --quality daily");
1825
var result = command.
Parse
("update --quality invalid");
1892
var result = command.
Parse
("update --channel stable --quality daily");
1952
var result = command.
Parse
("update");
2014
var result = command.
Parse
("update");
2168
var result = command.
Parse
("update");
2228
var result = command.
Parse
("update --channel staging");
2457
var result = command.
Parse
("update");
2531
var result = command.
Parse
("update");
2616
var result = command.
Parse
("update");
2669
var result = command.
Parse
($"update --apphost \"{appHostFile.FullName}\"");
2890
var result = command.
Parse
(updateArgs);
2928
var result = command.
Parse
("update --self");
2969
var result = command.
Parse
("update --self");
3014
var result = command.
Parse
("update --self");
3059
var result = command.
Parse
("update --self");
3093
var result = command.
Parse
("update --self --channel stable");
3159
var result = command.
Parse
("update --yes --channel stable --non-interactive");
3279
var result = command.
Parse
(updateArgs);
3445
var result = command.
Parse
(commandLine);
Commands\WaitCommandTests.cs (15)
26
var result = command.
Parse
("wait --help");
41
var result = command.
Parse
("wait");
56
var result = command.
Parse
("wait myresource --help");
70
var result = command.
Parse
("wait myresource --apphost /path/to/project.csproj --help");
84
var result = command.
Parse
("wait myresource --status up --help");
98
var result = command.
Parse
("wait myresource --timeout 60 --help");
115
var result = command.
Parse
($"wait myresource --status {status} --help");
132
var result = command.
Parse
($"wait myresource --status {status} --help");
164
var result = command.
Parse
("wait nonexistent --timeout 5");
206
var result = command.
Parse
("wait myapp --status up --timeout 5");
242
var result = command.
Parse
("wait mydb --status healthy --timeout 5");
274
var result = command.
Parse
("wait mydb --status healthy --timeout 2");
310
var result = command.
Parse
("wait worker --status down --timeout 5");
342
var result = command.
Parse
("wait myapp --status up --timeout 5");
384
var result = command.
Parse
("wait myapp --status down --timeout 5");
Interaction\ConsoleInteractionServiceTests.cs (22)
1327
var parseResult = command.
Parse
("--value bad-value");
1390
var parseResult = command.
Parse
("");
1420
var parseResult = command.
Parse
("");
1437
var parseResult = command.
Parse
("");
1519
var parseResult = command.
Parse
("");
1531
var parseResult = command.
Parse
("");
1547
var parseResult = command.
Parse
("");
1577
var parseResult = command.
Parse
("--choice invalid");
1599
var parseResult = command.
Parse
("--items invalid");
1626
var parseResult = command.
Parse
("--items invalid");
1652
var parseResult = command.
Parse
("--items invalid");
1684
var parseResult = command.
Parse
("--items invalid");
1710
var parseResult = command.
Parse
("");
1728
var parseResult = command.
Parse
("--choice option1");
1746
var parseResult = command.
Parse
("--items alpha,gamma");
1761
var parseResult = command.
Parse
("--yes");
1773
var parseResult = command.
Parse
("--include");
1835
var parseResult = command.
Parse
("");
1852
var parseResult = command.
Parse
("--choice option1");
1871
var parseResult = command.
Parse
("--items alpha,gamma");
1890
var parseResult = command.
Parse
("");
1909
var parseResult = command.
Parse
("");
NuGet\NuGetPackagePrefetcherTests.cs (4)
57
command.SelectForExecution(command.
Parse
("ls"));
77
command.SelectForExecution(command.
Parse
("ls"));
293
var parseResult = newCommand.
Parse
(commandLine);
514
command.SelectForExecution(parseResult ?? command.
Parse
(commandLine));
Templating\JavaStarterScaffoldTests.cs (1)
109
var parseResult = newCommand.
Parse
(
dotnet (1)
Parser.cs (1)
355
public static ParseResult Parse(string commandLineUnsplit) => RootCommand.
Parse
(commandLineUnsplit, ParserConfiguration);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Parser.cs (1)
355
public static ParseResult Parse(string commandLineUnsplit) => RootCommand.
Parse
(commandLineUnsplit, ParserConfiguration);
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
135
.Where(arg => !msbuildCommandDefinition.
Parse
(arg).HasOption(msbuildCommandDefinition.TargetOption))
Microsoft.TemplateEngine.Cli (1)
Commands\create\InstantiateCommand.TabCompletion.cs (1)
67
ParseResult parseResult = parser.
Parse
(context.CommandLineText, ParserFactory.ParserConfiguration);
System.CommandLine (1)
Completions\CompletionAction.cs (1)
29
var completionParseResult = parseResult.RootCommandResult.Command.
Parse
(commandLineToComplete, parseResult.Configuration);