Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
745 B

using StabilityMatrix.Core.Models.Packages.Extensions;
using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Core.Models.PackageModification;
public class InstallExtensionStep(
IPackageExtensionManager extensionManager,
InstalledPackage installedPackage,
PackageExtension packageExtension,
PackageExtensionVersion? extensionVersion = null
) : IPackageStep
{
public Task ExecuteAsync(IProgress<ProgressReport>? progress = null)
{
return extensionManager.InstallExtensionAsync(
packageExtension,
installedPackage,
extensionVersion,
progress
);
}
public string ProgressTitle => $"Installing Extension {packageExtension.Title}";
}