rrc

Crates.iorrc
lib.rsrrc
version0.2.0
sourcesrc
created_at2020-01-07 14:14:27.579149
updated_at2022-08-21 00:55:40.031125
descriptionA manage remote repository clones
homepagehttps://github.com/mopemope/rrc
repositoryhttps://github.com/mopemope/rrc
max_upload_size
id196134
size72,962
Yutaka Matsubara (mopemope)

documentation

README

rrc - Manage remote repository clones

crates.io

rrc is a remote repository management tool like ghq written in Rust.

rrc provides a way to organize remote repository clones, like go get does.

rrc makes a directory under a specific root directory (by default ~/repos) using the remote repository URL’s host and path.

Installation

$ cargo install rrc

Usage

rrc command is almost compatible with ghq.

rrc
A manage remote repository clones

USAGE:
    rrc [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --config <FILE>    Set config file

SUBCOMMANDS:
    each      Execute command for each local repositories
    get       Clone remote repository
    help      Prints this message or the help of the given subcommand(s)
    list      List local repositories
    look      Look local repository
    remove    Remove local repositories
    update    Update local repositories

For how to use this tool, ghq-handbook will be helpful.

Config

rrc provides a simple toml-style configuration file.

The configuration file can set profile name in the section. You can then select a profile with command line options. And you can also set host filters. If you set a host filter, it will be enabled across profiles.

# default profile
[default]
# customize repo root path
root = "~/repos"

# personal profile
[personal]
# customize repo root path
root = "~/personal_repos"
# hosts filter. gitlab repository cloned '~/personal_repos'
hosts = ["gitlab.com"]

Commit count: 39

cargo fmt