2 types derived from BaseSearchCommand
Microsoft.TemplateEngine.Cli (2)
Commands\search\LegacySearchCommand.cs (1)
11internal class LegacySearchCommand : BaseSearchCommand
Commands\search\SearchCommand.cs (1)
10internal class SearchCommand : BaseSearchCommand
17 references to BaseSearchCommand
Microsoft.TemplateEngine.Cli (10)
Commands\create\InstantiateCommand.cs (1)
541.WithArgument(BaseSearchCommand.NameArgument, instantiateArgs.ShortName));
Commands\search\SearchCommandArgs.cs (2)
10internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult) : base(command, parseResult) 12string? nameCriteria = parseResult.GetValue(BaseSearchCommand.NameArgument);
TemplateListCoordinator.cs (4)
80.WithArgument(BaseSearchCommand.NameArgument)); 125.WithArgument(BaseSearchCommand.NameArgument)); 133.WithArgument(BaseSearchCommand.NameArgument, args.ListNameCriteria)); 190.WithArgument(BaseSearchCommand.NameArgument, "web"));
TemplateSearch\CliTemplateSearchCoordinator.cs (3)
256Reporter.Error.WriteLine(LocalizableStrings.CliTemplateSearchCoordinator_Info_SearchHelp, string.Join(", ", BaseSearchCommand.SupportedFilters.Select(f => $"'{f.OptionFactory().Name}'"))); 262.WithArgument(BaseSearchCommand.NameArgument, "web")); 274.WithArgument(BaseSearchCommand.NameArgument, "web")
Microsoft.TemplateEngine.Cli.UnitTests (7)
ParserTests\SearchTests.cs (7)
66SearchCommandArgs args = new((BaseSearchCommand)parseResult.CommandResult.Command, parseResult); 100SearchCommandArgs args = new((BaseSearchCommand)parseResult.CommandResult.Command, parseResult); 196SearchCommandArgs args = new((BaseSearchCommand)parseResult.CommandResult.Command, parseResult); 216SearchCommandArgs args = new((BaseSearchCommand)parseResult.CommandResult.Command, parseResult); 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"));