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