purduesigbots/pros-cli2

Explore Better Project Creation/Upgrade Algorithms

Closed this issue · 1 comments

CLI should create projects as frequently as possible (w.r.t to the user's filesystem). This issue is intended to gather feedback on how pros conduct create should behave with non-empty target directories.

One possible solution is to always create the project, and if a file that we attempt to copy already exists, notify the user, don't copy the file, and continue on to the next file.

One possible solution is to always create the project, and if a file that we attempt to copy already exists, notify the user, don't copy the file, and continue on to the next file.

This seems to me like the best way to handle such a situation. I would also suggest implementing a -f or --force argument that will override existing files.