webNeat/lumen-generators

Check existence of file

henninghorn opened this issue · 2 comments

Hi @webNeat

Would it make sense that the generator would check the existence of a file before creating it?
Like if you're generating a model, so you accidentally don't overwrite a existing model.

Hello,

yes this could definitely help. An option --force could be added to force to override the existing file.

I will try to include this in the next release :)

Thank you