This commit is contained in:
2025-04-15 10:34:07 +03:00
parent 35982a0ae7
commit 6df5baa457
10 changed files with 63 additions and 55 deletions

View File

@@ -20,20 +20,13 @@ import (
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/manager"
)
func NewInstaller(
repos PackageFinder,
mgr manager.Manager,
) *Installer {
func NewInstaller(mgr manager.Manager) *Installer {
return &Installer{
repos: repos,
mgr: mgr,
mgr: mgr,
}
}
type Installer struct {
repos PackageFinder
mgr manager.Manager
}
type Installer struct{ mgr manager.Manager }
func (i *Installer) InstallLocal(paths []string) error {
return i.mgr.InstallLocal(nil, paths...)