36 references to WithSubcommand
Microsoft.TemplateEngine.Cli (29)
Commands\create\InstantiateCommand.cs (3)
519
.
WithSubcommand
<ListCommand>()
528
.
WithSubcommand
<ListCommand>());
540
.
WithSubcommand
<SearchCommand>()
TemplateListCoordinator.cs (5)
79
.
WithSubcommand
<SearchCommand>()
124
.
WithSubcommand
<SearchCommand>()
132
.
WithSubcommand
<SearchCommand>()
183
.
WithSubcommand
<ListCommand>());
189
.
WithSubcommand
<SearchCommand>()
TemplatePackageCoordinator.cs (10)
155
.
WithSubcommand
<InstallCommand>()
174
.
WithSubcommand
<UninstallCommand>()
746
.
WithSubcommand
<UninstallCommand>()
754
.
WithSubcommand
<UninstallCommand>()
764
.
WithSubcommand
<UninstallCommand>());
773
.
WithSubcommand
<UninstallCommand>());
846
.
WithSubcommand
<InstallCommand>()
851
.
WithSubcommand
<InstallCommand>()
858
.
WithSubcommand
<UpdateCommand>());
923
.
WithSubcommand
<UninstallCommand>()
TemplatePackageDisplay.cs (6)
57
.
WithSubcommand
<InstallCommand>()
76
.
WithSubcommand
<UninstallCommand>()
269
.
WithSubcommand
<UninstallCommand>()
305
.
WithSubcommand
<InstallCommand>()
310
.
WithSubcommand
<InstallCommand>()
317
.
WithSubcommand
<UpdateCommand>());
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
97
.
WithSubcommand
<InstallCommand>()
103
.
WithSubcommand
<InstallCommand>()
261
.
WithSubcommand
<SearchCommand>()
267
.
WithSubcommand
<SearchCommand>()
273
.
WithSubcommand
<SearchCommand>()
Microsoft.TemplateEngine.Cli.UnitTests (7)
ParserTests\InstallTests.cs (1)
238
Assert.Equal("dotnet new install my-source", Example.For<NewCommand>(parseResult).
WithSubcommand
<InstallCommand>().WithArgument(BaseInstallCommand.NameArgument, "my-source"));
ParserTests\ListTests.cs (1)
278
Assert.Equal("dotnet new list", Example.For<NewCommand>(parseResult).
WithSubcommand
<ListCommand>());
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"));
ParserTests\UninstallTests.cs (1)
99
Assert.Equal("dotnet new uninstall my-source", Example.For<NewCommand>(parseResult).
WithSubcommand
<UninstallCommand>().WithArgument(BaseUninstallCommand.NameArgument, "my-source"));
ParserTests\UpdateTests.cs (1)
197
Assert.Equal("dotnet new update", Example.For<NewCommand>(parseResult).
WithSubcommand
<UpdateCommand>());