more fixes

This commit is contained in:
2026-01-25 22:30:01 +01:00
parent b548955ed9
commit 27960741a3
5 changed files with 102 additions and 45 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import (
)
type SoftwareUpdaterServiceInterface interface {
Update(platform, name string) error
Update(platform, name, version string) error
}
type SoftwareUpdaterService struct {
@@ -16,9 +16,9 @@ func NewSoftwareUpdaterService(tic80Updater SoftwareUpdaterTIC80ServiceInterface
return &SoftwareUpdaterService{tic80Updater: tic80Updater}
}
func (s *SoftwareUpdaterService) Update(platform, name string) error {
func (s *SoftwareUpdaterService) Update(platform, name, version string) error {
if platform == "tic80" {
return s.tic80Updater.Update(name)
return s.tic80Updater.Update(name, version)
}
return fmt.Errorf("unsupported platform: %s", platform)
}