feat: add config and structured logging
This commit is contained in:
parent
902a8bb7d1
commit
fe83dc1f33
9 changed files with 275 additions and 31 deletions
|
|
@ -3,7 +3,9 @@ package gui
|
|||
import (
|
||||
"embed"
|
||||
"jws/internal/dependency"
|
||||
"jws/internal/logger"
|
||||
"jws/internal/project"
|
||||
"log/slog"
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/data/binding"
|
||||
|
|
@ -17,10 +19,12 @@ var (
|
|||
dependencies []dependency.Dependency
|
||||
projects []project.Project
|
||||
projectsFS embed.FS
|
||||
log *slog.Logger
|
||||
)
|
||||
|
||||
// Init initializes the GUI package with required dependencies
|
||||
func Init(window fyne.Window, deps []dependency.Dependency, projs []project.Project, fs embed.FS) {
|
||||
log = logger.GetChildLogger("gui")
|
||||
mainWindow = window
|
||||
dependencies = deps
|
||||
projects = projs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue