21 个版本
| 0.3.5 | 2022年3月9日 |
|---|---|
| 0.3.3 | 2021年10月1日 |
| 0.3.2 | 2021年6月24日 |
| 0.3.0 | 2021年1月30日 |
| 0.1.4 | 2019年3月5日 |
#2894 in 命令行工具
每月下载量 62
16KB
336 代码行
gitweb
一些标志和选项在未来可能会更改。欢迎提出建议。建议是防弹的(V)。
gitweb 是我创建的一个命令行界面,主要用于学习 Rust。

安装
🍺 Homebrew 方法
brew install yoannfleurydev/gitweb/gitweb
# or
brew tap yoannfleurydev/gitweb
brew install gitweb
📦 Cargo 方法
cargo install gitweb
⚙️ 二进制方法
从 最新版本 下载二进制文件并将其放置在您的 PATH 中。
🖥 MacPorts 方法
sudo port selfupdate
sudo port install gitweb
用法
gitweb 默认情况下将在当前仓库的浏览器中打开远程仓库。
gitweb 0.3.1
USAGE:
gitweb [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-M, --merge-request Set the merge request flag
-V, --version Prints version information
-v, --verbose Set the verbosity of the command
OPTIONS:
-b, --branch <branch> Set the branch (alias for --tag)
-B, --browser <browser> Set the browser [env: BROWSER=]
-c, --commit <commit> Set a commit
-r, --remote <remote> Set the remote
-t, --tag <tag> Set the tag (alias for --branch)
--branch, --tag
gitweb 将在远程仓库中打开当前分支或标签。您可以通过提供自定义的分支或标签来覆盖此行为,在命令行中使用 --branch 或 --tag 标志。
--browser
gitweb 尝试启动以下浏览器之一(按此优先级顺序)
- 命令行中提供的
--browser选项 $BROWSER在 Linux 🐧 或%BROWSER%在 Windows 🏁(这是一个非标准变量)- 系统上的默认网络浏览器
--commit
gitweb 将在远程仓库中打开作为参数提供的提交。
--remote
gitweb 如果存在,将打开 origin 远程仓库。您可以通过提供自定义的远程仓库来覆盖此行为,使用 --remote 标志。
依赖项
~19–31MB
~524K SLoC