Skip to content

manaphoenix/CC-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC-Code Repository

A repository for all the code developed for ComputerCraft, including addons and forks.


gfetch App

A powerful GitHub fetch utility for ComputerCraft that supports aliases, batch downloads, automatic base64 decoding, and tab completions.

🔧 Installation

wget https://raw.githubusercontent.com/manaphoenix/CC-Code/refs/heads/main/apps/gfetch.lua gfetch.lua

📦 Usage

Basic File Download

gfetch owner/repo/branch/path/to/file.lua [output_path]
  • owner/repo/branch/path — Required. Full path to the GitHub file.
  • output_path — Optional. Defaults to saving at the same relative path locally.

Using Aliases

You can define repository aliases in .gfetch.conf:

{
  gfetch_dir = "config",
  aliases = {
    cc = "manaphoenix/CC-Code/main"
  }
}

Then fetch files like so:

gfetch cc/lib/linq.lua

Batch Mode

Use a .gfetch batch file to define multiple files to download:

# manaphoenix/CC-Code/main
./lib/linq.lua lib/linq.lua
./utils/parallelActions.lua utils/parallelActions.lua

Run with:

gfetch --batch myfiles.gfetch

Remote URLs for .gfetch files are also supported.


Alias Management

gfetch --alias add myalias owner/repo/branch
gfetch --alias remove myalias

Adds or removes entries from your .gfetch.conf.


🧠 Features

  • ✅ Raw GitHub file fetching via GitHub API
  • ✅ Aliases for reusable repo+branch targets
  • .gfetch batch files for grouped installs
  • ✅ Remote or local batch file support
  • ✅ Auto base64 decoding of file contents
  • ✅ Smart path resolution & completions support

Completions work in the ComputerCraft shell when gfetch is run directly.


🔗 Example

gfetch manaphoenix/CC-Code/main/lib/linq.lua lib/linq.lua

Visit the project page: CC-Code

About

A repo for all my ComputerCraft (And Open Computers) Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages