Add Reset Project command#27
Conversation
|
Cool, thanks for your contribution, @HardCodeDev777 ! Clean style and formatting! I tested it and I believe it currently deletes a bit "too much". For example: It's similar to the git command which deletes all untracked files: git glean -fdSince that already exists, we don't need to provide this specific functionality in UCLL. Let me propose inverting the logic:
Basically, we want to get rid of things that can corrupt project state and which users would sometimes manually delete to fix issues. I consider all user settings to fall into this category. We can assume that most users will be using version control, so they can always use their vcs to delete everything untracked, but for UCLL it makes most sense to focus on specific Unity file system entries. If you agree, please go ahead and implement the changes, I'll help you test (I have quite a few large-scale company projects that I can use). And thanks again! :) |
chrisyarbrough
left a comment
There was a problem hiding this comment.
See comment: #27 (comment)
(ha, I'm still figuring out how GitHub works)
|
Thanks for feedback! I thought about this way of implementation, but I wasn't sure if only But I agree, it makes more sense and I'll rework it accordingly👍 |
|
I’ve updated the implementation and also added |
|
Thanks, I tested it and it works nicely. Let me do a few tiny formatting changes and also add a few more file extensions that I know about like |
Your project and its architecture are very cool, I really like it 👍
I decided to try implementing the Reset Project command from #14.
Summary
A new
reset-projectcommand that resets a Unity project by removing generated and cache files.It keeps only
Assets/,Packages/andProjectSettings/.This provides a safe (with
--dry-run😁) and repeatable way to reset a project directly via UCLL.