142 references to NewCommand
aspire (7)
Commands\InitCommand.cs (2)
113Options.Add(NewCommand.s_suppressAgentInitOption); 174var agentInitBinding = PromptBinding.CreateInvertedBoolConfirm(parseResult, NewCommand.s_suppressAgentInitOption, defaultValue: true);
Commands\NewCommand.cs (2)
787binding: PromptBinding.Create(parseResult, NewCommand.s_outputOption, path), 800binding: PromptBinding.Create(parseResult, NewCommand.s_nameOption, defaultName),
Commands\RootCommand.cs (1)
147NewCommand newCommand,
Commands\TemplateCommand.cs (1)
31if (!string.IsNullOrWhiteSpace(parseResult.GetValue(NewCommand.s_sourceOption)))
Program.cs (1)
644builder.Services.AddTransient<NewCommand>();
Aspire.Cli.Tests (135)
Commands\NewCommandChannelResolutionTests.cs (10)
22/// Behavioral guard on <see cref="NewCommand"/>'s channel resolution. The command sources its 109var newCommand = serviceProvider.GetRequiredService<NewCommand>(); 169/// <see cref="NewCommand"/>. Pinned here so a future refactor doesn't regress the 360/// <c>--channel</c> is supplied, <see cref="NewCommand"/> must forward the running CLI's 461/// <see cref="NewCommand"/> must NOT blindly forward the unrecognized identity into 527/// Invokes <see cref="NewCommand"/> with a fake template that captures the 600var newCommand = serviceProvider.GetRequiredService<NewCommand>(); 763/// <see cref="NewCommand"/> registers it as the only subcommand and tests can drive
Commands\NewCommandTemplateConfigPersistenceTests.cs (11)
23/// persists into <c>aspire.config.json</c>. Drives <see cref="NewCommand"/> end-to-end 41/// the value is persisted iff <see cref="NewCommand"/> resolved one (Explicit 57/// <see cref="NewCommand"/> hands to template factories via <c>TemplateInputs.Channel</c>), 109/// Templates that pin <c>aspire.config.json#channel</c> when <see cref="NewCommand"/> 142/// <see cref="NewCommand"/> resolves it and every channel-pinning template persists 195/// <c>staging</c> channel for a staging-identity CLI. Once <see cref="NewCommand"/> 275var newCommand = serviceProvider.GetRequiredService<NewCommand>(); 345/// Drives <c>aspire new &lt;templateId&gt;</c> against the real <see cref="NewCommand"/>, 391var newCommand = serviceProvider.GetRequiredService<NewCommand>();
Commands\NewCommandTests.cs (106)
63var command = provider.GetRequiredService<NewCommand>(); 80var command = provider.GetRequiredService<NewCommand>(); 95var command = provider.GetRequiredService<NewCommand>(); 168var command = provider.GetRequiredService<NewCommand>(); 192var command = provider.GetRequiredService<NewCommand>(); 281var command = provider.GetRequiredService<NewCommand>(); 313var command = provider.GetRequiredService<NewCommand>(); 391var command = provider.GetRequiredService<NewCommand>(); 468var command = provider.GetRequiredService<NewCommand>(); 545var command = provider.GetRequiredService<NewCommand>(); 584var command = provider.GetRequiredService<NewCommand>(); 616var command = provider.GetRequiredService<NewCommand>(); 648var command = provider.GetRequiredService<NewCommand>(); 800var command = provider.GetRequiredService<NewCommand>(); 922var command = provider.GetRequiredService<NewCommand>(); 947var command = provider.GetRequiredService<NewCommand>(); 992var command = provider.GetRequiredService<NewCommand>(); 1027var command = provider.GetRequiredService<NewCommand>(); 1088var command = provider.GetRequiredService<NewCommand>(); 1151var command = provider.GetRequiredService<NewCommand>(); 1179var command = provider.GetRequiredService<NewCommand>(); 1242var command = provider.GetRequiredService<NewCommand>(); 1287var command = provider.GetRequiredService<NewCommand>(); 1336var command = provider.GetRequiredService<NewCommand>(); 1360var command = provider.GetRequiredService<NewCommand>(); 1394var command = provider.GetRequiredService<NewCommand>(); 1428var command = provider.GetRequiredService<NewCommand>(); 1462var command = provider.GetRequiredService<NewCommand>(); 1501var command = provider.GetRequiredService<NewCommand>(); 1537var command = provider.GetRequiredService<NewCommand>(); 1554var command = provider.GetRequiredService<NewCommand>(); 1583var command = provider.GetRequiredService<NewCommand>(); 1608var command = provider.GetRequiredService<NewCommand>(); 1642var command = provider.GetRequiredService<NewCommand>(); 1716var command = provider.GetRequiredService<NewCommand>(); 1924var command = provider.GetRequiredService<NewCommand>(); 2260var command = provider.GetRequiredService<NewCommand>(); 2285var command = provider.GetRequiredService<NewCommand>(); 2310var command = provider.GetRequiredService<NewCommand>(); 2358var command = provider.GetRequiredService<NewCommand>(); 2403var command = provider.GetRequiredService<NewCommand>(); 2447var command = provider.GetRequiredService<NewCommand>(); 2489var command = provider.GetRequiredService<NewCommand>(); 2537var command = provider.GetRequiredService<NewCommand>(); 2576var command = provider.GetRequiredService<NewCommand>(); 3258var command = provider.GetRequiredService<NewCommand>(); 3289var command = provider.GetRequiredService<NewCommand>(); 3315var command = provider.GetRequiredService<NewCommand>(); 3343var command = provider.GetRequiredService<NewCommand>(); 3377var command = provider.GetRequiredService<NewCommand>(); 3399var command = provider.GetRequiredService<NewCommand>(); 3459var command = provider.GetRequiredService<NewCommand>(); 3505var command = provider.GetRequiredService<NewCommand>();
NuGet\NuGetPackagePrefetcherTests.cs (5)
221[InlineData(typeof(NewCommand), true, true)] 271var newCommand = provider.GetRequiredService<NewCommand>(); 286var newCommand = provider.GetRequiredService<NewCommand>();
Templating\JavaStarterScaffoldTests.cs (2)
140var newCommand = serviceProvider.GetRequiredService<NewCommand>();
Utils\CliTestHelper.cs (1)
272services.AddTransient<NewCommand>();