ankushbhardwxj / codemon

cli to win programming contests
https://pypi.org/project/codemon/
MIT License
26 stars 12 forks source link

codemon clean #23

Closed lucifer0987 closed 3 years ago

lucifer0987 commented 3 years ago

Follow up to this issue #12

It will be used to delete redundant files left after the contest as discussed in the issue above. We will have a lot of redundant files which will simply eat our storage. codemon clean will clear up all the mess(prog, input.txt, testcase files) after a contest.

There is a catch to this. We can't randomly delete the mess. We can directly delete prog. But for input.txt, we must check whether it contains something, if its empty delete it else give an error message saying "Input file is not empty, do you want to delete ? (Y/N)` and user can decide what to do with it. For the testcase files, we have to "diff" them before deleting, i.e., if the testcase files had no changes in it then it can be deleted else if any kind of changes was done, they must stay.

subhangi2731 commented 3 years ago

can you please assign this issue to me? @lucifer0987

lucifer0987 commented 3 years ago

@subhangi2731 yes, you can work on this. but, i guess, first i need to complete the issue #12 then, only you can work on cleaning the residual files.

ankushbhardwxj commented 3 years ago

Reiterating the tasks :

devsTudu commented 3 years ago

Hello, can you assign this to me

lucifer0987 commented 3 years ago

@ankingcodes Can you please explain this issue once more?

ankushbhardwxj commented 3 years ago

Done 72938ac11f63f7fbf8f5b59e811fd8cc7c87e861 !