Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konijima/cc-git-clone
ComputerCraft program to clone a github repo.
https://github.com/konijima/cc-git-clone
computercraft minecraft
Last synced: 16 days ago
JSON representation
ComputerCraft program to clone a github repo.
- Host: GitHub
- URL: https://github.com/konijima/cc-git-clone
- Owner: Konijima
- Created: 2022-05-15T14:23:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T22:29:17.000Z (8 months ago)
- Last Synced: 2024-11-05T19:00:32.794Z (2 months ago)
- Topics: computercraft, minecraft
- Language: Lua
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cc-git-clone
ComputerCraft program to clone a **github** repo.![](https://github.com/Konijima/cc-git-clone/blob/master/Screenshot_1.png?raw=true)
## Install
```lua
wget https://raw.githubusercontent.com/Konijima/cc-git-clone/master/gitclone.lua
```## Clone Repo
```lua
--- PARAMS:
--- USER, Required, git username
--- REPO, Required, git repo name
--- BRANCH, Required, git repo branch to clone
--- PATH, Optional, local path to save the repo inside, default to current working directory
gitclone
```## Exemples
Exemple 1 (install in current working directory):
```lua
-- Command
gitclone Konijima some-repo master
-- Result directory
/some-repo/
```
Exemple 2: (install in absolute directory)
```lua
-- Command
gitclone Konijima some-repo master /programs
-- Result directory
/programs/some-repo/
```
Example 3: (One liner install)
```lua
-- Command
wget run https://raw.githubusercontent.com/Konijima/cc-git-clone/master/gitclone.lua Konijima some-repo master /programs
-- Result directory
/programs/some-repo/
```