1 instantiation of InstallCommand
Microsoft.TemplateEngine.Cli (1)
Commands\NewCommand.cs (1)
24
Add(new
InstallCommand
(this, hostBuilder));
25 references to InstallCommand
Microsoft.TemplateEngine.Cli (15)
Commands\install\LegacyInstallCommand.cs (1)
27
PrintDeprecationMessage<LegacyInstallCommand,
InstallCommand
>(args.ParseResult);
TemplateInvoker.cs (1)
259
Reporter.Output.WriteCommand(Example.For<
InstallCommand
>(templateArgs.ParseResult).WithArgument(BaseInstallCommand.NameArgument, templatePackage.DisplayName));
TemplatePackageCoordinator.cs (5)
155
.WithSubcommand<
InstallCommand
>()
645
.For<
InstallCommand
>(args.ParseResult)
846
.WithSubcommand<
InstallCommand
>()
851
.WithSubcommand<
InstallCommand
>()
1007
Reporter.Error.WriteCommand(Example.For<
InstallCommand
>(parseResult).WithArgument(BaseInstallCommand.NameArgument, packageToInstall).WithOption(BaseInstallCommand.ForceOption));
TemplatePackageDisplay.cs (6)
57
.WithSubcommand<
InstallCommand
>()
160
_reporterError.WriteCommand(Example.For<
InstallCommand
>(parseResult).WithArgument(BaseInstallCommand.NameArgument, packageToInstall).WithOption(BaseInstallCommand.ForceOption));
189
_reporterError.WriteCommand(Example.For<
InstallCommand
>(parseResult).WithArgument(BaseInstallCommand.NameArgument, packageToInstall).WithOption(BaseInstallCommand.ForceOption));
202
_reporterError.WriteCommand(Example.For<
InstallCommand
>(parseResult).WithArgument(BaseInstallCommand.NameArgument, packageToInstall).WithOption(BaseInstallCommand.ForceOption));
305
.WithSubcommand<
InstallCommand
>()
310
.WithSubcommand<
InstallCommand
>()
TemplateSearch\CliTemplateSearchCoordinator.cs (2)
97
.WithSubcommand<
InstallCommand
>()
103
.WithSubcommand<
InstallCommand
>()
Microsoft.TemplateEngine.Cli.UnitTests (10)
ParserTests\InstallTests.cs (9)
21
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
41
Assert.Throws<ArgumentException>(() => new InstallCommandArgs((
InstallCommand
)parseResult.CommandResult.Command, parseResult));
66
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
83
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
90
args = new InstallCommandArgs((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
104
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
111
args = new InstallCommandArgs((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
125
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);
238
Assert.Equal("dotnet new install my-source", Example.For<NewCommand>(parseResult).WithSubcommand<
InstallCommand
>().WithArgument(BaseInstallCommand.NameArgument, "my-source"));
ParserTests\MiscTests.cs (1)
110
InstallCommandArgs args = new((
InstallCommand
)parseResult.CommandResult.Command, parseResult);