xonixx / makesure

Simple task/command runner with declarative goals and dependencies
https://makesure.dev
MIT License
340 stars 5 forks source link

Handle Ctrl-C #74

Closed xonixx closed 2 years ago

xonixx commented 2 years ago

Now the behavior is:

# Makesurefile
@goal b
    echo "b..."
    sleep 5

@goal a
@depends_on b
    echo "a..."
    sleep 5

Executing:

$ ./makesure a
  goal 'b' ...
b...
^C  goal 'a' ...
a...
^C

It should instead exit after first Ctrl-C