2 types derived from BaseUninstallCommand
Microsoft.TemplateEngine.Cli (2)
Commands\uninstall\LegacyUninstallCommand.cs (1)
10
internal class LegacyUninstallCommand :
BaseUninstallCommand
Commands\uninstall\UninstallCommand.cs (1)
10
internal class UninstallCommand :
BaseUninstallCommand
14 references to BaseUninstallCommand
Microsoft.TemplateEngine.Cli (10)
Commands\uninstall\UninstallCommandArgs.cs (2)
10
public UninstallCommandArgs(
BaseUninstallCommand
uninstallCommand, ParseResult parseResult) : base(uninstallCommand, parseResult)
12
TemplatePackages = parseResult.GetValue(
BaseUninstallCommand
.NameArgument) ?? Array.Empty<string>();
TemplateInvoker.cs (1)
256
Reporter.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)
22
UninstallCommandArgs args = new((
BaseUninstallCommand
)parseResult.CommandResult.Command, parseResult);
38
UninstallCommandArgs args = new((
BaseUninstallCommand
)parseResult.CommandResult.Command, parseResult);
55
UninstallCommandArgs args = new((
BaseUninstallCommand
)parseResult.CommandResult.Command, parseResult);
99
Assert.Equal("dotnet new uninstall my-source", Example.For<NewCommand>(parseResult).WithSubcommand<UninstallCommand>().WithArgument(
BaseUninstallCommand
.NameArgument, "my-source"));