refactor services to use Interface and change name to app

This commit is contained in:
Robin Olsen
2026-02-22 16:16:09 +01:00
parent dbf619a054
commit 118e67dbf4
36 changed files with 247 additions and 219 deletions

View File

@@ -3,19 +3,12 @@ package main
import (
"context"
"github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/tui"
)
func main() {
config := tui.TUIConfig{
StatisticsStoragePath: "./.pm/stats.json",
BeadsDBPath: "./.pm/db.db",
IssuePrefix: "pm",
}
tui := tui.NewTui()
if err := tui.Run(context.Background(), config); err != nil {
panic(err)
if err := tui.NewTui().Run(context.Background(), service.BaseConfig); err != nil {
return
}
}