vieter/src/cron/cron.v

19 lines
316 B
Coq
Raw Normal View History

2022-04-09 09:46:07 +02:00
module cron
import git
import time
struct ScheduledBuild {
repo git.GitRepo
timestamp time.Time
}
fn (r1 ScheduledBuild) < (r2 ScheduledBuild) bool {
return r1.timestamp < r2.timestamp
}
2022-04-09 09:46:07 +02:00
// cron starts a cron daemon & starts periodically scheduling builds.
2022-04-09 09:46:07 +02:00
pub fn cron(conf Config) ? {
2022-04-12 21:28:44 +02:00
println('WIP')
2022-04-09 09:46:07 +02:00
}