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

@@ -38,17 +38,12 @@ func BaseDetails() taskui.TaskDetails {
}
}
func BaseConfig() task.TaskConfig {
return task.TaskConfig{
IssuePrefix: "pm",
WebAddress: ":8080",
BeadsDBPath: "./.pm/db.db",
StatisticsStoragePath: "./.pm/stats.json",
}
func BaseConfig() task.Config {
return service.BaseConfig
}
func ClearIssues(svc *service.Services) error {
return svc.Beads.DeleteIssues()
func ClearIssues(app *service.App) error {
return app.Issues.DeleteIssues()
}
func BaseQuestions(interfaceType task.InterfaceType) taskui.Questions {