13 references to ToolUninstallCommandParser
dotnet (8)
Commands\Tool\ToolCommandParser.cs (1)
35command.Subcommands.Add(ToolUninstallCommandParser.GetCommand());
Commands\Tool\Uninstall\ToolUninstallCommand.cs (2)
22private readonly bool _global = result.GetValue(ToolUninstallCommandParser.GlobalOption); 23private readonly string _toolPath = result.GetValue(ToolUninstallCommandParser.ToolPathOption);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (3)
34var global = _parseResult.GetValue(ToolUninstallCommandParser.GlobalOption); 35var toolPath = _parseResult.GetValue(ToolUninstallCommandParser.ToolPathOption); 56var packageId = new PackageId(_parseResult.GetValue(ToolUninstallCommandParser.PackageIdArgument));
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
32_packageId = new PackageId(parseResult.GetValue(ToolUninstallCommandParser.PackageIdArgument)); 33_explicitManifestFile = parseResult.GetValue(ToolUninstallCommandParser.ToolManifestOption);
dotnet.Tests (5)
CommandTests\Tool\Uninstall\UninstallToolParserTests.cs (5)
23var packageId = result.GetValue(ToolUninstallCommandParser.PackageIdArgument); 33result.GetValue<bool>(ToolUninstallCommandParser.GlobalOption).Should().Be(true); 42result.GetValue<string>(ToolUninstallCommandParser.ToolPathOption).Should().Be(@"C:\Tools"); 51result.GetValue<bool>(ToolUninstallCommandParser.LocalOption).Should().Be(true); 60result.GetValue<string>(ToolUninstallCommandParser.ToolManifestOption).Should().Be(@"folder/my-manifest.format");