Git Module Manager

About Monkey 2 Forums Monkey 2 Projects Git Module Manager

This topic contains 2 replies, has 2 voices, and was last updated by  regulark 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14989

    regulark
    Participant

    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:
    https://github.com/seankarol/git-module-manager

    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!

    #14998

    Mark Sibly
    Keymaster

    Cool, is it using the github REST api?

    #14999

    regulark
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.