Skip to content

mdouchement/shigoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shigoto

GoDoc Go Report Card License

A nextgen crontab. It's a Golang alternative of crontab heavily inspired of Taskfile templating mechanism.

Technologies / Frameworks

Shigoto file

File must be in the folder defined by the directive directory from Shigoto configuration file.

variables:
  MY_VAR: value1

environment:
  MY_VAR: "{{.MY_VAR}}"

shigoto:
  "Do something":
    schedule: "@every 10s"
    workdir: /tmp
    logs_file: /tmp/trololo.log
    variables:
      MY_VAR: value2
    commands:
      - touch {{.MY_VAR}}.txt

More documentation.

License

MIT

Contributing

All PRs are welcome.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request