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

@@ -8,15 +8,15 @@ import (
taskui "github.com/LazyBachelor/LazyPM/pkg/task/ui"
)
type TaskConfig = service.Config
type Config = service.Config
type InterfaceType string
type Interface interface {
Run(context.Context, TaskConfig) error
Run(context.Context, Config) error
}
type Tasker interface {
Config() TaskConfig
Config() Config
Details() taskui.TaskDetails
Questions(InterfaceType) taskui.Questions
Setup(context.Context) error