2 types derived from BaseUninstallCommand
Microsoft.TemplateEngine.Cli (2)
Commands\uninstall\LegacyUninstallCommand.cs (1)
10internal class LegacyUninstallCommand : BaseUninstallCommand
Commands\uninstall\UninstallCommand.cs (1)
10internal class UninstallCommand : BaseUninstallCommand
14 references to BaseUninstallCommand
Microsoft.TemplateEngine.Cli (10)
Commands\uninstall\UninstallCommandArgs.cs (2)
10public UninstallCommandArgs(BaseUninstallCommand uninstallCommand, ParseResult parseResult) : base(uninstallCommand, parseResult) 12TemplatePackages = parseResult.GetValue(BaseUninstallCommand.NameArgument) ?? Array.Empty<string>();
TemplateInvoker.cs (1)
256Reporter.Output.WriteCommand(Example.For<UninstallCommand>(templateArgs.ParseResult).WithArgument(BaseUninstallCommand.NameArgument, templatePackage.DisplayName));
TemplatePackageCoordinator.cs (4)
175.WithArgument(BaseUninstallCommand.NameArgument, packageId)); 747.WithArgument(BaseUninstallCommand.NameArgument)); 755.WithArgument(BaseUninstallCommand.NameArgument, managedPackages.First().Identifier)); 924.WithArgument(BaseUninstallCommand.NameArgument, managedSource.Identifier),
TemplatePackageDisplay.cs (3)
77.WithArgument(BaseUninstallCommand.NameArgument, packageId)); 201_reporterError.WriteCommand(Example.For<UninstallCommand>(parseResult).WithArgument(BaseUninstallCommand.NameArgument, packageToInstall)); 270.WithArgument(BaseUninstallCommand.NameArgument, managedSource.Identifier),
Microsoft.TemplateEngine.Cli.UnitTests (4)
ParserTests\UninstallTests.cs (4)
22UninstallCommandArgs args = new((BaseUninstallCommand)parseResult.CommandResult.Command, parseResult); 38UninstallCommandArgs args = new((BaseUninstallCommand)parseResult.CommandResult.Command, parseResult); 55UninstallCommandArgs args = new((BaseUninstallCommand)parseResult.CommandResult.Command, parseResult); 99Assert.Equal("dotnet new uninstall my-source", Example.For<NewCommand>(parseResult).WithSubcommand<UninstallCommand>().WithArgument(BaseUninstallCommand.NameArgument, "my-source"));