MasoniteFramework / masonite4

Temporary Repository for a Masonite Rewrite for Masonite 4
14 stars 3 forks source link

Don't override files by default when using "make" commands #221

Closed girardinsamuel closed 2 years ago

girardinsamuel commented 2 years ago

All "make" commands now have a force option to avoid overriding the file. A warning is displayed and the command stops. The user is invited to use --force flag to override the file.

Also line_error() was used and sometimes without style="error" so to be more consistent, now all commands use and can access:

self.info()
self.comment()
self.warning()
self.error()
girardinsamuel commented 2 years ago

@josephmancuso are you okay with this ? It's just some security. I don't really like when override is not mentioned...can surprise some users !

josephmancuso commented 2 years ago

Great idea!