public ImportedPackageDisplayType(string name, PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor, IEnumerable <string> importedPackageIds) { this.name = name; this.controller = controller; this.chocoExecutor = chocoExecutor; importedPackages = importedPackageIds.Select(repo.GetPackage).ToList(); }
public AllPackageDisplayType(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor) { this.repo = repo; this.nugetExecutor = nugetExecutor; }
public static IPackageDisplayType BuildUpgradeFilter(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor) => new UpgradeablePackageDisplayType(repo, nugetExecutor, chocoExecutor);
public UpgradeablePackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor) { this.chocoExecutor = chocoExecutor; }
public InstalledPackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor) { this.chocoExecutor = chocoExecutor; }
public static List <IPackageDisplayType> BuildDisplayTypes(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor) => new List <IPackageDisplayType> { new AllPackageDisplayType(repo, nugetExecutor, chocoExecutor), new InstalledPackageDisplayType(repo, nugetExecutor, chocoExecutor), new UpgradeablePackageDisplayType(repo, nugetExecutor, chocoExecutor), };
public void Execute(ChocoExecutor chocoExecutor, Action <string> outputLineCallback) { chocoExecutor.Upgrade(packages, specificVersion, outputLineCallback); }
public void Execute(ChocoExecutor chocoExecutor, Action <string> outputLineCallback) { chocoExecutor.Uninstall(packages, outputLineCallback); }
public void Execute(ChocoExecutor chocoExecutor, SemanticVersion specificVersion, Action <string> outputLineCallback) { chocoExecutor.Uninstall(package, outputLineCallback); }