Skip to content

kijimaD/gclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚗️Check

gclone

gclone is literate git clone cli tool.

$ gclone
────────────────────────
Save dir: /root/Project1
Repo count: 2
────────────────────────
⢿✔ [email protected]:fatih/color.git
⡿✔ [email protected]:joho/godotenv.git

────────────────────────
Save dir: /root/Project2
Repo count: 2
────────────────────────
⡿✔ [email protected]:kijimaD/my_go.git
⣻✔ [email protected]:kijimaD/gin_hello.git

done!
Success: 4
Fail: 0
Process: 8760ms

Install

$ go install github.com/kijimaD/gclone@main

How to use

gclone.yml example

groups:
  - dest: '~/Project/test0'
    repos:
      - [email protected]:kijimaD/my_go.git
      - [email protected]:kijimaD/gin_hello.git
  - dest: '~/Project/test1'
    repos:
      - [email protected]:fatih/color.git
      - [email protected]:joho/godotenv.git

and run!(gclone.yml exist on current directory )

$ gclone

Options

-f: config file path

$ gclone -f dir/gclone.yml

Docker

This command is for testing, not save result your disk. If you want to save disk, mount save directory.

docker run --rm \
           -it \
           -v "${PWD}":/workdir \
           -v "${HOME}/.ssh":/root/.ssh \
           ghcr.io/kijimad/gclone:latest