shigoto

module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2022 License: MIT

README

Shigoto

GoDoc Go Report Card License

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

Requirements

  • Golang 1.13.x (Go Modules)
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

Directories

Path Synopsis
cmd
internal
pkg
io
templater
Package templater is imported form https://github.com/go-task/task/tree/master/internal/templater
Package templater is imported form https://github.com/go-task/task/tree/master/internal/templater

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL