mdouchement / shigoto

A nextgen crontab.
MIT License
0 stars 0 forks source link

Add defer statement #14

Closed mdouchement closed 7 months ago

mdouchement commented 7 months ago
commands:
  - sh: |
      for i in {{.RANGE | splitList "\n" | join " "}}
      do
        echo "Hello $i times"
      done
    # defer will execute this command when all runners are runned (it works like Golang's defer).
    # (default: false)
    defer: true