1 instantiation of SearchCommand
Microsoft.TemplateEngine.Cli (1)
Commands\NewCommand.cs (1)
27
Add(new
SearchCommand
(this, hostBuilder));
22 references to SearchCommand
Microsoft.TemplateEngine.Cli (9)
Commands\create\InstantiateCommand.cs (1)
540
.WithSubcommand<
SearchCommand
>()
Commands\search\LegacySearchCommand.cs (1)
33
PrintDeprecationMessage<LegacySearchCommand,
SearchCommand
>(args.ParseResult);
TemplateListCoordinator.cs (4)
79
.WithSubcommand<
SearchCommand
>()
124
.WithSubcommand<
SearchCommand
>()
132
.WithSubcommand<
SearchCommand
>()
189
.WithSubcommand<
SearchCommand
>()
TemplateSearch\CliTemplateSearchCoordinator.cs (3)
261
.WithSubcommand<
SearchCommand
>()
267
.WithSubcommand<
SearchCommand
>()
273
.WithSubcommand<
SearchCommand
>()
Microsoft.TemplateEngine.Cli.UnitTests (13)
ParserTests\SearchTests.cs (3)
253
Assert.Equal("dotnet new search my-template", Example.For<NewCommand>(parseResult).WithSubcommand<
SearchCommand
>().WithArgument(BaseSearchCommand.NameArgument, "my-template"));
267
Assert.Equal("dotnet new search [<template-name>]", Example.For<NewCommand>(parseResult).WithSubcommand<
SearchCommand
>().WithArgument(BaseSearchCommand.NameArgument));
281
Assert.Equal("dotnet new search [<template-name>] --author Microsoft", Example.For<NewCommand>(parseResult).WithSubcommand<
SearchCommand
>().WithArgument(BaseSearchCommand.NameArgument).WithOption(SharedOptionsFactory.CreateAuthorOption(), "Microsoft"));
TemplateSearchCoordinatorTests.cs (10)
78
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
125
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
169
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
208
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
252
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
294
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
337
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
384
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
426
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);
463
SearchCommandArgs args = new((
SearchCommand
)parseResult.CommandResult.Command, parseResult);