Open HumHongeKamyaab opened 4 years ago
Ah, now I see what you mean. Yeah, those would be really cool features.
On second thought, I think it is much easier if main.py
function automatically make local git repository for each course folder when first time it is called and make a first commit for it.
So each time main.py
is run, all the course folder will be updated and new commit will be made in each repository with some predefined message syntax.
Now user can manage each course folder with git, without any interference with main.py
.
Just to clarify, main.py
will work as git clone
, pull
and commit
each time it run depending on context.
I think the simplest solution would be create a single repository manually and write your own simple shell wrapper which would call moodle-dl
and afterwards calls add
and commit
with e.g. a timestamp as a commit message.
This downloader kind of implemented the ideas you had (only in a other way, maybe more usefull) https://github.com/omareldeeb/tum-moodle-downloader Actually I still do not get your idea fully. maybe you also just wanted these commands for the moodle-dl database...
I do not want to work on such a feature, I do not see a good reason in it. If someone is intrested in it, do a PR, but first describe what you want to implement.
jonas-t-s already showed in his PR how to implement git repo actions, but that is not what you really want (And I also do not really want it).
It is continuation of issue #43. It more makes sense to use the
git
approach for folder version management in downloaded course folder. It will automatically add features to solve the issue of accidental file/folder deletion.May be it is better that if each course can be treated independently, for e.g.,