Flaque / thaum

Thaum is a simple boilerplate and scaffolding command line utility.
https://flaque.github.io/thaum/
MIT License
23 stars 3 forks source link

Make all path generations atomic #3

Closed Flaque closed 7 years ago

Flaque commented 7 years ago

Currently if thaum finds an error in the middle of creating a bunch of files, it will stop. This means that you can get half-completed templates, which is probably not good.

This can be fixed by having the compile function in the template create a struct of paths to be created and then create them all at the end.