Jump to content




Simple Command Line GitHub Downloader

utility

  • You cannot reply to this topic
8 replies to this topic

#1 austinv11

  • Members
  • 107 posts

Posted 20 January 2014 - 10:07 AM

This program is a very simple and quick way to download files off of GitHub

Just run: pastebin get V2pQK64w github
or if you want the API: pastebin get 2Bzjhx8h <your program's name>, then just write your program under the API

Commands (currently only one):
github get <user> <repo> <branch> <path> <topath>

API functions(currently only one):
gitGet(user, repo, branch, path, toPath) -returns false if download failed, true if it worked

Changelog:
Spoiler

Note: I would love to have it be able to push commits, post bugs, etc. But I have no idea if it's possible without the OAuth API, let alone how to do it, so if you have an idea, please post it below.

Edited by austinv11, 12 February 2014 - 08:30 PM.


#2 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 January 2014 - 06:47 PM

View Postaustinv11, on 20 January 2014 - 10:07 AM, said:

Note: I would love to have it be able to push commits, post bugs, etc. But I have no idea if it's possible, let alone how to do it, so if you have an idea, please post it below.

Looks good, I'd look in to the GitHub API. That way you can download entire repos and push stuff. (However, I think that you might need OAuth to push, which doesn't work in CC)

Edited by oeed, 20 January 2014 - 06:47 PM.


#3 austinv11

  • Members
  • 107 posts

Posted 20 January 2014 - 09:37 PM

View Postoeed, on 20 January 2014 - 06:47 PM, said:

View Postaustinv11, on 20 January 2014 - 10:07 AM, said:

Note: I would love to have it be able to push commits, post bugs, etc. But I have no idea if it's possible, let alone how to do it, so if you have an idea, please post it below.

Looks good, I'd look in to the GitHub API. That way you can download entire repos and push stuff. (However, I think that you might need OAuth to push, which doesn't work in CC)

Yeah that's the issue, I can't use the OAuth, but I'm trying to see if I could think of a workaround. I was just hoping the community would have ideas about this! :)

Edited by austinv11, 20 January 2014 - 09:40 PM.


#4 Symmetryc

  • Members
  • 434 posts

Posted 20 January 2014 - 10:22 PM

Why the sleep function call?

#5 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 20 January 2014 - 11:32 PM

You can host your own script, but then you can steal passwords. You might find some wrapper over this issue on the internet (I think I saw one once), but still, they might be malicious, too.

#6 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 21 January 2014 - 12:34 AM

If you want I'll send you the code I use to download a repo if you like. Give me a PM if so.

#7 austinv11

  • Members
  • 107 posts

Posted 21 January 2014 - 04:52 PM

View PostSymmetryc, on 20 January 2014 - 10:22 PM, said:

Why the sleep function call?
Just for visual appeal :P

#8 austinv11

  • Members
  • 107 posts

Posted 21 January 2014 - 04:57 PM

View Postawsmazinggenius, on 20 January 2014 - 11:32 PM, said:

You can host your own script, but then you can steal passwords. You might find some wrapper over this issue on the internet (I think I saw one once), but still, they might be malicious, too.
I was thinking about that, but I have no idea how to go about safely doing this.

#9 austinv11

  • Members
  • 107 posts

Posted 12 February 2014 - 08:31 PM

I finally included an overlooked feature; support for standard computers!





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users