Skip to content

r6m/every

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

every

Every translates english to crontab expression

every expression crontab expression
every 2 minutes */2 * * * *
every 2 minutes on Fri */2 * * * Fri
every day at 3 pm 0 15 * * *
every hour in Jun on Sun,Fri 0 * * Jun Sun,Fri

Everyfile config

every uses hashicorp hcl config structure.

every "2 minutes" {
  run = "command >/dev/null 2>&1"
  user = "ubuntu"
}

every "day at 3 pm" {
  run = "command >/dev/null 2>&1"
  user = "ubuntu"
}

every "hour in Jun on Sun,Fri" {
  run = "command >/dev/null 2>&1"
  user = "ubuntu"
}

TODO

  • every cmd to run commands
  • support Everyfile to generate crontab file (hcl)
  • read args to generate from input
  • run jobs as specific user
  • update crontab from config