Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check existence of file #11

Closed
henninghorn opened this issue Jun 13, 2016 · 2 comments
Closed

Check existence of file #11

henninghorn opened this issue Jun 13, 2016 · 2 comments

Comments

@henninghorn
Copy link

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.

@webNeat
Copy link
Owner

webNeat commented Jun 13, 2016

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

webNeat added a commit that referenced this issue Jan 12, 2017
- Bug fixed: [Undefined index: factory](#14)
- Feature added: [Check if file already exists before generating it](#11)
- Feature added: [Support for additional columns like nullableTimestamps() and softDeletes() in migrations](#12)
- Feature added: [Specifying namespace for `wn:resource` and `wn:resources`](#18)
@webNeat
Copy link
Owner

webNeat commented Jan 12, 2017

@webNeat webNeat closed this as completed Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants