I started prototyping what could become a module manager using Github to list the modules and to download them.
Currently it will pull the REST from https://api.github.com/search/repositories?q=topic:monkey2+topic:module&sort=stars&order=desc (that is, any repositories marked with the topics monkey2 and modules and sort them by descending stars.)
It will then parse the returned Json, creating the Repositories and Owners instances. Then those could be used to clone / pull into the modules folder, though I haven’t gotten that far.
It can be found here:
I will continue to work on this occasionally though I doubt I will have the time to build it into the full module manager. Please fork, download, contribute, use it, whatever you can!
Cool, is it using the github REST api?
Yup you betcha, getting the information is pretty darn easy.
I think I’ll work towards splitting this up into some modules:
REST = help with getting REST resources, this would be quite useful for a lot scenarios now as it seems like all online service use REST now
GitHub = use the Json returned from the REST module to create GitHub resources into objects, so we can list repositories and such
Git = using std.process to interact with the local users git installation
You must be logged in to reply to this topic.
Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.