Usually when I try to use the toolbox init-project, it fails due to the project folder not being empty. But the only file in there is .ds-store. It works if I delete the .ds-store file immediately before running the toolbox.sh, but it’s kind of a pain to do that every time.
Oh, the punishment for not developing solely inside the command line!
I’ll throw in a feature request:
toolbox init-project should ignore the following items (or have a -f forced flag) : .DS_Store, .AppleDouble, .LSOverride, .AppleDB, .AppleDesktop, Thumbs.db, ethumbs.db, Desktop.ini, Icon, and similar system metadata files
For the moment, the first step of Init-project is a git clone. (Actually the restriction “the folder cannot be existing and not empty” comes from git clone and not the tool).
So in our case it would overwrite the .git if there was one. But let’s say that it does it in a temporary folder and then just move the content without the git related files.
Now, if you have one of these files (.* and #* files) in your directory and in the starter kit. What should the tool do?
It should not overwrite without a warning to the user and should not skip these files.
And in general the tool should not keep a list of OS specific file names to be treated differently.
What you want, most of the time, is to create the project in a new folder
So in the documentation, rather than “toolbox.sh init-project -n com.company.myapp -r starter-base"
It should say “toolbox.sh init-project -n com.company.myapp -r starter-base -d myapp”.
It would create the project folder with inside the project content, which is what you want.
(But I still like the idea of a forced flag to not block the user)