#git #clone

app repo_cmd

A CLI tool to obtain the GitHub repository's full name, url, etc. from the name of the repository

3 releases

0.1.2 May 4, 2020
0.1.1 May 4, 2020
0.1.0 May 3, 2020

#162 in #clone

MIT license

11KB
141 lines

Repo - obtaining the GitHub repository's full name, url, etc. from the name of the repository

HitCount Crates.io GitHub

repo is a command which can obtain the repository's full name; the {author}/{repository}-formatted string, from the name of the repository by connecting to the GitHub searching API.

$ repo rust
rust-lang/rust
$ repo url rust
https://github.com/rust-lang/rust.git
$ repo git-url rust
git://github.com/rust-lang/rust.git
$ repo link rust
https://github.com/rust-lang/rust
$ git clone $(repo url rust)
Cloning into 'rust'...

Installation

You can install repo_cmd with cargo.

$ cargo install repo_cmd

Dependencies

~4.5–9MB
~169K SLoC