2 types derived from BaseSearchCommand
Microsoft.TemplateEngine.Cli (2)
Commands\search\LegacySearchCommand.cs (1)
11
internal class LegacySearchCommand :
BaseSearchCommand
Commands\search\SearchCommand.cs (1)
10
internal 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)
10
internal SearchCommandArgs(
BaseSearchCommand
command, ParseResult parseResult) : base(command, parseResult)
12
string? 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)
256
Reporter.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)
66
SearchCommandArgs args = new((
BaseSearchCommand
)parseResult.CommandResult.Command, parseResult);
100
SearchCommandArgs args = new((
BaseSearchCommand
)parseResult.CommandResult.Command, parseResult);
196
SearchCommandArgs args = new((
BaseSearchCommand
)parseResult.CommandResult.Command, parseResult);
216
SearchCommandArgs args = new((
BaseSearchCommand
)parseResult.CommandResult.Command, parseResult);
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"));