Today I have something very cool and useful for you! We all have used pastebin and it works great, but what about working out of pastebin with the lack of versioning and organization? Well that's what Github excels at! I have created projects on Github and wished I didn't have to go into my browser, download the file, put it in my computer files and then get back into Minecraft. I felt that this was a very large waste of time and decided to act on this feeling and make a useful tool for those who have the same problem. Introducing… Git for ComputerCraft!
Developed by LNETeam, we have made a very simple program to help expedite your programming and time crunches. The package includes the shell program which can be executed by:
git get [author] [repo] [branch] [path] {file-name}
- This command gets the file from the desired location then saves it as 'file-name'[indent=1]You can also simply view the file for quick access by executing:[/indent]
[indent=1]
git view
[author] [repo] [branch] [path] - This loads the file into the modified 'edit' program to view or print. It does not save the file so you don't have to deal with files everywhere![/indent]The other part of this program is the API capability. You can simply run 'git.get()' or 'git.view()' with the same arguments from the shell. Ex.
git.get('LNETeam','CCGit','dev','files/Shell/git','demo')
This will save the file 'git' to 'demo' on your machine! Don't even have to go to your browser! The same is done with 'git.view()'
Installation:
[indent=1]You can download the source code from: https://github.com/L...t/releases/v1.1, or you can download the already formatted ('lua/rom/etc…') so you don't have to![/indent]
[indent=1]You can also use my apt-get package manager to install: "apt-get install ccgit"[/indent]
[indent=1]If you download from Github, simply create a folder on your desktop, name it lua. Next in that folder, create rom and within that create help, apis,and programs. Now open the source files **Please read the README.md**, and navigate to files. Copy the appropriate file from API, Shell, and Help to their corresponding folder within 'lua/rom' folder you made. Now reload minecraft and your done![/indent]
[indent=1]If you don't want to modify your core files, then just drag them to a computer folder and use them there. Don't mix them up![/indent]