1 instantiation of InstallCommand
Microsoft.TemplateEngine.Cli (1)
Commands\NewCommand.cs (1)
24Add(new InstallCommand(this, hostBuilder));
25 references to InstallCommand
Microsoft.TemplateEngine.Cli (15)
Commands\install\LegacyInstallCommand.cs (1)
27PrintDeprecationMessage<LegacyInstallCommand, InstallCommand>(args.ParseResult);
TemplateInvoker.cs (1)
259Reporter.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>() 1007Reporter.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)
21InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult); 41Assert.Throws<ArgumentException>(() => new InstallCommandArgs((InstallCommand)parseResult.CommandResult.Command, parseResult)); 66InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult); 83InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult); 90args = new InstallCommandArgs((InstallCommand)parseResult.CommandResult.Command, parseResult); 104InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult); 111args = new InstallCommandArgs((InstallCommand)parseResult.CommandResult.Command, parseResult); 125InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult); 238Assert.Equal("dotnet new install my-source", Example.For<NewCommand>(parseResult).WithSubcommand<InstallCommand>().WithArgument(BaseInstallCommand.NameArgument, "my-source"));
ParserTests\MiscTests.cs (1)
110InstallCommandArgs args = new((InstallCommand)parseResult.CommandResult.Command, parseResult);