refactor: create App internally, promote newService(), adjust variable names

This commit is contained in:
2025-06-22 18:58:01 -05:00
parent 2a23ddc9a5
commit 0aba8b4bfa
4 changed files with 86 additions and 91 deletions

View File

@@ -8,7 +8,6 @@ import (
"os"
"path/filepath"
"ha-tray/internal/app"
"ha-tray/internal/service"
)
@@ -26,9 +25,8 @@ func main() {
}
}()
// Create app layer and service layer
appLayer := app.NewApp(logger)
svc := service.NewService(logger, appLayer)
// Create service layer
svc := service.NewService(logger)
logger.Info("HATray initialized, running service")