refactor for separation of concern for better readabiliy and maintainability

This commit is contained in:
Robin Olsen
2026-03-03 11:41:07 +01:00
parent e8d9f9d1b6
commit 763f079063
11 changed files with 530 additions and 471 deletions

View File

@@ -83,7 +83,9 @@ func taskLoop(ctx context.Context, application *task.App, surveyTasks map[string
iIdx := idx % len(iNames)
selected := interfaces[iNames[iIdx]]
if err := task.RunTask(ctx, application, t, selected, tasks.InterfaceToType(selected)); err != nil {
runner := task.NewTaskRunner(application)
if err := runner.Run(ctx, t, selected, tasks.InterfaceToType(selected)); err != nil {
return err
}
idx++