wip: refactor(config): completed task structure

This commit is contained in:
2024-01-10 22:29:30 +11:00
parent 99436e54cd
commit db251da5f6
3 changed files with 129 additions and 32 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ func TestTasks_List(t *testing.T) {
},
}
tasks.crones = []wminit.CronTask{
&Cron{
&CronTask{
CronSchedule: CronSchedule{
Minute: NewCronAnySpec(),
Hour: NewCronAnySpec(),
@@ -54,7 +54,7 @@ func TestTasks_List(t *testing.T) {
name: "cron-one",
command: []string{"/path/to/executable"},
},
&Cron{
&CronTask{
CronSchedule: CronSchedule{
Minute: NewCronAnySpec(),
Hour: NewCronAnySpec(),