[1.3] Cc-Get 0.1.1
DJRanger 22 Feb 2012
About cc-get
cc-get was created in the hope that it would make it easier to install, use and distribute scripts for ComputerCraft. All users may download and use cc-get without an account, however in order to post scripts on the cc-get website you must have an account.
Features
- cc-get install <program> [-v version]
Where <program> is the name of a program found on this website. It will install <program> to /bin/<program>-lib. If the author of the program has specified that the program should be available
on your path a file will also be created at /bin/<program>. If you provide a valid version number, that version will be installed. - cc-get update
This will check to see if any scripts need to be updated. If a program needs to be updated it will do so. - cc-get remove <program>
This will remove <program> from the computer - cc-get list
This will give you a list of all programs installed and their versions.
If you have Redworks installed
You should already have cc-get. Although cc-get is not developed by the RedWorks team, it is included in their package.
Install cc-get
Download the latest version of cc-get from cc-get.djranger.com/downloads. Enable the HTTP API if needed, then extract the file you downloaded to .minecraft/mods. If prompted to do so overwrite, combine or merge files and directories as needed.
The program library, more information, detailed installation steps and more are available at cc-get.djranger.com.
MewK 22 Feb 2012
Three suggestions though:
- Some kind of dependency function would be awesome, so i can define my depencies on your site (like StringUtil or other libs) and cc-get will download everthing i need
Right now I'm limited two one script per project. Would be awesome if you could support additional API files and stuff like thatI just realized that you added this function already. thanks!- Is it possible to define aliases that cc-get can automatically install persistently?
DJRanger 23 Feb 2012
MewK, on 22 February 2012 - 11:42 PM, said:
Three suggestions though:
- Some kind of dependency function would be awesome, so i can define my depencies on your site (like StringUtil or other libs) and cc-get will download everthing i need
Right now I'm limited two one script per project. Would be awesome if you could support additional API files and stuff like thatI just realized that you added this function already. thanks!- Is it possible to define aliases that cc-get can automatically install persistently?
1. I am working on adding support for dependencies. I've been pretty busy, but that is my next planned feature.
3. I'm not sure what you mean. Can you give me an example?
MewK 23 Feb 2012
DJRanger, on 23 February 2012 - 07:10 PM, said:
Sure. I can run 'shell.setAlias(...)' after the first run, but it would be nice if cc-get could do that during the install/update process and on startup.
PS: Another feature I would definitely love to see is a GitHub integration. You could require a cc-get.conf file in the repo that has all the settings you need (version, description, etc). That means for us devs, that we have just to commit our changes, and all the deployment is done. And for the users it means, that they can get the latest releases per DDL (directly from GitHub) and cc-get.
VegBerg 24 Feb 2012
Running latest version as of now. (0.1.0), and the HTTP API is enabled.
MewK 24 Feb 2012
Warning: file_put_contents(/home/djranger/cc-get.djranger.com/projects/midcraft-commander/drawin.lua) [function.file-put-contents]: failed to open stream: No such file or directory in /home/djranger/cc-get.djranger.com/application/classes/model/script.php on line 80
Warning: file_put_contents(/home/djranger/cc-get.djranger.com/projects/midcraft-commander/filesystem.lua) [function.file-put-contents]: failed to open stream: No such file or directory in /home/djranger/cc-get.djranger.com/application/classes/model/script.php on line 80
Fatal error: Uncaught exception 'GitRuntimeException' with message 'Command cd '/home/djranger/cc-get.djranger.com/projects/midcraft-commander' && /usr/bin/git add -A failed with code 1: ' in /home/djranger/cc-get.djranger.com/modules/git/vendor/php-git/lib/PHPGit/Command.php:58 Stack trace: #0 /home/djranger/cc-get.djranger.com/modules/git/vendor/php-git/lib/PHPGit/Repository.php(195): PHPGit_Command->run() #1 /home/djranger/cc-get.djranger.com/application/classes/model/script.php(109): PHPGit_Repository->git('add -A') #2 /home/djranger/cc-get.djranger.com/application/classes/model/version.php(172): Model_Script->edit_files(Array) #3 /home/djranger/cc-get.djranger.com/application/classes/controller/scripts.php(168): Model_Version->save() #4 [internal function]: Controller_Scripts->action_edit() #5 /home/djranger/cc-get.djranger.com/system/classes/kohana/request/client/internal.php(118): ReflectionMethod->invoke(Object(Controller_Scripts)) #6 /home/djranger/cc-get.djranger.com/system/classes/kohana/request/client.php(64): in /home/djranger/cc-get.djranger.com/modules/git/vendor/php-git/lib/PHPGit/Command.php on line 58
PS: Something went terribly wrong xD Loo at that:
http://cc-get.djranger.com/scripts/view/52
PPS: I added a new directory, saved my project, and after that I've deleted it again. After clicking on Save the error occurt.
DJRanger 24 Feb 2012
MewK, on 23 February 2012 - 09:17 PM, said:
PS: Another feature I would definitely love to see is a GitHub integration. You could require a cc-get.conf file in the repo that has all the settings you need (version, description, etc). That means for us devs, that we have just to commit our changes, and all the deployment is done. And for the users it means, that they can get the latest releases per DDL (directly from GitHub) and cc-get.
As for GitHub integration, I agree that would be nice, but for now it's low priority.
VegBerg, on 24 February 2012 - 06:08 PM, said:
Running latest version as of now. (0.1.0), and the HTTP API is enabled.
MewK, on 24 February 2012 - 06:50 PM, said:
MewK 24 Feb 2012
DJRanger, on 24 February 2012 - 07:51 PM, said:
Yea, I was using that feature. But I want an alias too /> My project name is midcraft-commander, which is a good name for the project, but to have the alias 'mc' too would make things a lot easier.
VegBerg 24 Feb 2012
DJRanger, on 24 February 2012 - 07:51 PM, said:
MewK, on 23 February 2012 - 09:17 PM, said:
PS: Another feature I would definitely love to see is a GitHub integration. You could require a cc-get.conf file in the repo that has all the settings you need (version, description, etc). That means for us devs, that we have just to commit our changes, and all the deployment is done. And for the users it means, that they can get the latest releases per DDL (directly from GitHub) and cc-get.
As for GitHub integration, I agree that would be nice, but for now it's low priority.
VegBerg, on 24 February 2012 - 06:08 PM, said:
Running latest version as of now. (0.1.0), and the HTTP API is enabled.
MewK, on 24 February 2012 - 06:50 PM, said:
Also, I guess this was inspired by apt-get/aptitude? /> Ubuntu<3
Selkitty 24 Feb 2012
DJRanger 24 Feb 2012
VegBerg, on 24 February 2012 - 06:08 PM, said:
MewK, on 24 February 2012 - 08:02 PM, said:
MewK, on 24 February 2012 - 06:50 PM, said:
VegBerg, on 24 February 2012 - 09:00 PM, said:
Selkitty, on 24 February 2012 - 09:46 PM, said:
Selkitty 24 Feb 2012
DJRanger, on 24 February 2012 - 10:56 PM, said:
(Feel free to rip/mutilate/otherwise render obsolete)
Mandrake Fernflower 26 Feb 2012
1. Allow people to download scripts with out cc-get ( Useful for global server script installs)
2. Have a program that can be ran on startup that lists the 10 newist scrips on cc-get
MewK 27 Feb 2012
could you make the local dir var in the /bin start-scripts global?
i'm using shell.getDir() to get the path the user is currently using, but you're overwriting it.
Just changing
local dir = shell.dir()to
ccget_dir = shell.dir()would do the job for me.
If ccget_dir exists I'm using that value instead of shell.getDir() and my program would have no problems.
The other idea I had was passing the dir as the first or last parameter, but that would probably break some programs.