#github #repository #repo #name #url #full #obtain

app repo_cmd

一个命令行工具,可以从仓库的名称中获取GitHub仓库的全名、URL等。

3个版本

0.1.2 2020年5月4日
0.1.1 2020年5月4日
0.1.0 2020年5月3日

#21 in #obtain

MIT许可证

11KB
141 代码行

Repo - 从仓库名称中获取GitHub仓库的全名、URL等

HitCount Crates.io GitHub

repo是一个命令,可以连接到GitHub搜索API,从仓库名称获取仓库的全名;格式为{author}/{repository}的字符串。

$ 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'...

安装

您可以使用cargo安装repo_cmd

$ cargo install repo_cmd

依赖关系

~4.5–9MB
~202K SLoC