1 instantiation of SearchCommand
Microsoft.TemplateEngine.Cli (1)
Commands\NewCommand.cs (1)
27Add(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)
33PrintDeprecationMessage<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)
253Assert.Equal("dotnet new search my-template", Example.For<NewCommand>(parseResult).WithSubcommand<SearchCommand>().WithArgument(BaseSearchCommand.NameArgument, "my-template")); 267Assert.Equal("dotnet new search [<template-name>]", Example.For<NewCommand>(parseResult).WithSubcommand<SearchCommand>().WithArgument(BaseSearchCommand.NameArgument)); 281Assert.Equal("dotnet new search [<template-name>] --author Microsoft", Example.For<NewCommand>(parseResult).WithSubcommand<SearchCommand>().WithArgument(BaseSearchCommand.NameArgument).WithOption(SharedOptionsFactory.CreateAuthorOption(), "Microsoft"));
TemplateSearchCoordinatorTests.cs (10)
78SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 125SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 169SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 208SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 252SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 294SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 337SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 384SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 426SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult); 463SearchCommandArgs args = new((SearchCommand)parseResult.CommandResult.Command, parseResult);