purduesigbots / pros-cli2

Command Line Interface for managing PROS projects
http://pros.cs.purdue.edu
Mozilla Public License 2.0
13 stars 10 forks source link

Explore Better Project Creation/Upgrade Algorithms #19

Closed edjubuh closed 7 years ago

edjubuh commented 7 years ago

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.

ghost commented 7 years ago

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.