repo
is a cli application to organise scm repositories in a structured hierarchy.
For example, github.com/microhod/repo.git
would be stored at ~/src/github.com/microhod/repo
.
Run repo --help
to see full CLI usage.
NAME:
repo - A cli application to organise scm repositories in a structured heirachy
USAGE:
repo [global options] command [command options] [arguments...]
COMMANDS:
clone clone a repo
organise organise all repos under the current path into a structured heirachy
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
- Install golang
1.22
or later - Run
go install github.com/microhod/repo@latest
to download and install the binary (this will install to~/go/bin
)
Configuration will be auto-generated at first startup and stored at ~/.config/repo/config.json
.
The default configuration is as below:
{
"remote": {
"default": {
"prefix": "ssh://[email protected]"
}
},
"local": {
"root": "~/src"
}
}
- More complete docs
- Tests!!!
-
--dry-run
option fororganise
-
--verbose
option for all commands - add
profile
command generate terminal profile for utlity commands