13 references to NameArgument
Microsoft.TemplateEngine.Cli (10)
Commands\create\InstantiateCommand.cs (1)
541
.WithArgument(BaseSearchCommand.
NameArgument
, instantiateArgs.ShortName));
Commands\search\BaseSearchCommand.cs (1)
32
Arguments.Add(
NameArgument
);
Commands\search\LegacySearchCommand.cs (1)
40
symbol => symbol is ArgumentResult argumentResult && argumentResult.Argument ==
NameArgument
);
Commands\search\SearchCommandArgs.cs (1)
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 (2)
262
.WithArgument(BaseSearchCommand.
NameArgument
, "web"));
274
.WithArgument(BaseSearchCommand.
NameArgument
, "web")
Microsoft.TemplateEngine.Cli.UnitTests (3)
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"));