gleam new .
should not panic if there's already a README.md in the dir
#2990
Replies: 2 comments 1 reply
-
Let's not skip by default as we don't want to lose data by accident. |
Beta Was this translation helpful? Give feedback.
-
What I've commonly seen with these types of commands is that by default it will never overwrite any existing files. I also like when the command appends to a file like gitignore if it already exists. In general I think not doing anything destructive by default is a good idea. |
Beta Was this translation helpful? Give feedback.
-
I think it's a pretty common workflow to create a repo on github w/ readme and perhaps license and then actually initialize the project locally.
While I do think that this should just skip over files like README.md and gitignore by default, there should at least be a more generic
--skip <FILENAME>
option so you can actually rungleam new
without deleting the readme and then deleting the stuff in the generic Gleam one just to replace it with what was there to begin with.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions