145 references to NewCommand
aspire (7)
Commands\InitCommand.cs (2)
113Options.Add(NewCommand.s_suppressAgentInitOption); 175var agentInitBinding = PromptBinding.CreateInvertedBoolConfirm(parseResult, NewCommand.s_suppressAgentInitOption, defaultValue: true);
Commands\NewCommand.cs (2)
794binding: PromptBinding.Create(parseResult, NewCommand.s_outputOption, path), 807binding: PromptBinding.Create(parseResult, NewCommand.s_nameOption, defaultName),
Commands\RootCommand.cs (1)
146NewCommand newCommand,
Commands\TemplateCommand.cs (1)
31if (!string.IsNullOrWhiteSpace(parseResult.GetValue(NewCommand.s_sourceOption)))
Program.cs (1)
679builder.Services.AddTransient<NewCommand>();
Aspire.Cli.Tests (138)
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 (109)
64var command = provider.GetRequiredService<NewCommand>(); 81var command = provider.GetRequiredService<NewCommand>(); 96var command = provider.GetRequiredService<NewCommand>(); 169var command = provider.GetRequiredService<NewCommand>(); 193var command = provider.GetRequiredService<NewCommand>(); 282var command = provider.GetRequiredService<NewCommand>(); 314var command = provider.GetRequiredService<NewCommand>(); 392var command = provider.GetRequiredService<NewCommand>(); 469var command = provider.GetRequiredService<NewCommand>(); 546var command = provider.GetRequiredService<NewCommand>(); 585var command = provider.GetRequiredService<NewCommand>(); 617var command = provider.GetRequiredService<NewCommand>(); 653var command = provider.GetRequiredService<NewCommand>(); 789var command = provider.GetRequiredService<NewCommand>(); 911var command = provider.GetRequiredService<NewCommand>(); 936var command = provider.GetRequiredService<NewCommand>(); 981var command = provider.GetRequiredService<NewCommand>(); 1016var command = provider.GetRequiredService<NewCommand>(); 1077var command = provider.GetRequiredService<NewCommand>(); 1140var command = provider.GetRequiredService<NewCommand>(); 1168var command = provider.GetRequiredService<NewCommand>(); 1238var command = provider.GetRequiredService<NewCommand>(); 1283var command = provider.GetRequiredService<NewCommand>(); 1332var command = provider.GetRequiredService<NewCommand>(); 1356var command = provider.GetRequiredService<NewCommand>(); 1391var command = provider.GetRequiredService<NewCommand>(); 1425var command = provider.GetRequiredService<NewCommand>(); 1459var command = provider.GetRequiredService<NewCommand>(); 1498var command = provider.GetRequiredService<NewCommand>(); 1534var command = provider.GetRequiredService<NewCommand>(); 1551var command = provider.GetRequiredService<NewCommand>(); 1580var command = provider.GetRequiredService<NewCommand>(); 1614var command = provider.GetRequiredService<NewCommand>(); 1642var command = provider.GetRequiredService<NewCommand>(); 1676var command = provider.GetRequiredService<NewCommand>(); 1750var command = provider.GetRequiredService<NewCommand>(); 1958var command = provider.GetRequiredService<NewCommand>(); 2301var command = provider.GetRequiredService<NewCommand>(); 2326var command = provider.GetRequiredService<NewCommand>(); 2351var command = provider.GetRequiredService<NewCommand>(); 2399var command = provider.GetRequiredService<NewCommand>(); 2444var command = provider.GetRequiredService<NewCommand>(); 2489var command = provider.GetRequiredService<NewCommand>(); 2531var command = provider.GetRequiredService<NewCommand>(); 2579var command = provider.GetRequiredService<NewCommand>(); 2618var command = provider.GetRequiredService<NewCommand>(); 3296var command = provider.GetRequiredService<NewCommand>(); 3327var command = provider.GetRequiredService<NewCommand>(); 3354var command = provider.GetRequiredService<NewCommand>(); 3383var command = provider.GetRequiredService<NewCommand>(); 3409var result = provider.GetRequiredService<NewCommand>().Parse( 3442var command = provider.GetRequiredService<NewCommand>(); 3464var command = provider.GetRequiredService<NewCommand>(); 3524var command = provider.GetRequiredService<NewCommand>(); 3570var 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)
276services.AddTransient<NewCommand>();