cortesi / modd

A flexible developer tool that runs processes and responds to filesystem changes
MIT License
2.8k stars 128 forks source link

How can I stop the execution of the next blocks? #81

Open juanpabloaj opened 4 years ago

juanpabloaj commented 4 years ago

The readme contains this line

If multiple blocks are triggered by the same set of changes, they too run in order, from top to bottom.

If I have a sequence of blocks

**/*.txt {
  prep: echo "block 1"
}

**/*.txt {
  prep: echo "block 2"
}

May I do something to stop the execution of block 2 if something fails in block 1?

Thanks.

jesselang commented 1 year ago

I don't believe so. I believe you could instead use multiple prep directives in a single block to achieve the desired outcome.

**/*.txt {
  prep: echo "prep 1"
  prep: echo "prep 2"
}