3 个版本
0.1.4 | 2020年5月6日 |
---|---|
0.1.3 | 2020年1月8日 |
0.1.2 | 2019年12月27日 |
#29 in #summary
10KB
144 代码行(不包括注释)
gstats
一个简单的 Rust 工具,可以快速获取 git 仓库的摘要信息,显示最新的标签、分支和状态。我实现了这个工具来帮助我在微服务的结果下处理数量不算太小的仓库。
它基本上显示的信息类似于在 zsh 中运行 "gst" 并使用 git 插件时的信息,只是针对所有直接子目录。
次要原因当然是让我尝试 Rust。所以,请对我的代码提出批评或建议。
图例
**** 包含未提交的更改。
?!?! 没有origin或不与origin同步。
安装
使用 Rust Cargo 安装。
cargoinstall gstats
示例
~/Apps ⌚ 12:22:14
$ time gstats
Base Dir: .
Stats of ./noiseclean [master @ N/A]:
Stats of ./systemd-vmware [master @ N/A]:
Stats of ./jEdit-Rust [master @ N/A]:
Stats of ./WSWireLib [master @ N/A]:
Stats of ./signal-reset [master @ N/A]:
Stats of ./li3_loggr [master @ N/A]:
Stats of ./li3_partials [master @ N/A]:
Stats of ./KickassTorrentsAPI [master @ N/A]:
Stats of ./convert-document [master @ 1.4.0]:
Stats of ./baidupan [master @ N/A]:
Stats of ./mimipenguin [master @ N/A]:
Stats of ./khttp [master @ 0.1.0]:
Stats of ./DeepFaceLab [master @ N/A]:
Stats of ./sidewinderd [master @ 0.4.1]:
Stats of ./json [master @ 9.0.6]:
Stats of ./micropolis [master @ N/A]:
Stats of ./Pyrit [master @ v0.5.0]:
Stats of ./parallel [master @ 0.11.3]:
Stats of ./Exposed [master @ 0.13.6]:
Stats of ./miraclecast [master @ v1.0]:
Stats of ./nimble [master @ v0.9.0]:
Stats of ./gradle-appengine-plugin [master @ gradle-appengine-plugin-1.9.59]:
**** Stats of ./OpenCL-Gaussian-Blur [master @ N/A]:
**** Stats of ./SolidOak [master @ 0.1.3]:
Stats of ./grive2 [master @ v0.5.0]:
**** Stats of ./openfortigui [master @ v0.7.3.1]:
Stats of ./ripgrep [master @ 11.0.1]:
Stats of ./getting-started-java [master @ N/A]:
Stats of ./spring-data-jpa [master @ 2.2.0.M3]:
Stats of ./bdr-plugin [bdr-plugin/REL0_9_STABLE @ bdr-plugin/0.9.3-2]:
Stats of ./dex2jar [2.x @ 2.1-nightly-28]:
Stats of ./Aporia [master @ v0.4.2]:
Stats of ./http4k [master @ N/A]:
Stats of ./spring-data-commons [master @ 2.2.0.M3]:
**** Stats of ./Nim [version-1-0 @ v1.0.0]:
Stats of ./spring-security-oauth [master @ 2.3.5.RELEASE]:
Stats of ./karate [master @ v0.9.2]:
?!?! Stats of ./liteide [master @ x30.2]:
Stats of ./youtube-dl [master @ 2019.09.01]:
Stats of ./nerd-fonts [master @ v2.0.0]:
Stats of ./neovim [master @ nightly]:
Stats of ./hibernate-orm [master @ 5.4.2]:
Stats of ./postgresql-bdr [bdr-pg/REL9_4_STABLE @ bdr-pg/REL9_4_6-1]:
Stats of ./openapi-generator [master @ v4.1.1]:
gstats 1.02s user 0.42s system 286% cpu 0.502 total
依赖项
~8–17MB
~278K SLoC