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.
15 lines
565 B
15 lines
565 B
using StabilityMatrix.Core.Models.FileInterfaces; |
|
using StabilityMatrix.Core.Models.Packages.Extensions; |
|
using StabilityMatrix.Core.Models.Progress; |
|
|
|
namespace StabilityMatrix.Core.Models.PackageModification; |
|
|
|
public class InstallExtensionStep(ExtensionBase extension, DirectoryPath extensionsDir) : IPackageStep |
|
{ |
|
public Task ExecuteAsync(IProgress<ProgressReport>? progress = null) |
|
{ |
|
return extension.InstallExtensionAsync(extensionsDir, extension.MainBranch); |
|
} |
|
|
|
public string ProgressTitle => $"Installing {extension.DisplayName}"; |
|
}
|
|
|