Closed ssbanerje closed 3 years ago
No, this option does not currently exist, but I am open to adding it. What would be a good interface? Having a command-line flag, e.g. -e/--exit-on-error
?
Another option would be to put it in the config file, though the yaml config file doesn't currently have any options to configure Dotbot itself, so we'd need to figure out what the interface for that should look like. Should there be a dotbot:
section? Or perhaps have it be a part of the defaults, like:
- defaults:
dotbot:
exit-on-error: true
link:
create: true
# ...
I think just having a command-line argument should be enough.
The usecase I am thinking of is primarily debugging the output of a failed dotbot
run. Depending on the amount of output from shell
or other plugins, this becomes kind of hard to do. So the usecase would be to have this on to debug, and once things are ok, just go back to default behavior.
Is there an option I can set to have the
dotbot
script exit on failure of a command. The current behavior seems to be to keep executing the remaining directives even if one of the intermediate steps fails.