5个版本
0.2.2 | 2024年7月26日 |
---|---|
0.2.1 | 2024年3月11日 |
0.2.0 | 2024年1月24日 |
0.1.1 | 2024年1月18日 |
0.1.0 | 2024年1月18日 |
#236 在 开发工具
每月 138 次下载
15KB
82 代码行
关于
获取GitHub仓库的最新发布标签
该实用程序通过reqwest
异步API抓取GitHub仓库标签页面。它不会抓取后续页面,因此只显示第一页上出现的最新标签。默认情况下,忽略包含rc
、pre
或canary
的标签,并且只显示第一个/最新标签,但这些行为可以通过-e
和-
选项分别修改。
如果您需要一个更通用/灵活的实用程序,请尝试git ls-remote - REPO
,该实用程序可以通过任何支持的协议查询GitHub和其他地方的远程git仓库,并将打印出所有标签。
使用方法
$ github-latest -V
github-latest 0.2.2
$ github-latest -h
Get latest tag(s) for GitHub repositories
Usage: github-latest [OPTIONS] [REPO]...
Arguments:
[REPO]... One or more GitHub repositories (`qtfkwk/github-latest`)
Options:
-e <EXCLUDE> Exclude tags with [default: rc,pre,canary]
-a Show all tags (on the first tags page)
-h, --help Print help
-V, --version Print version
示例
$ github-latest qtfkwk/github-latest
| Repository | Latest |
|----------------------|--------|
| qtfkwk/github-latest | 0.2.1 |
$ github-latest qtfkwk/github-latest -a
| Repository | Latest |
|----------------------|----------------------------|
| qtfkwk/github-latest | 0.2.1, 0.2.0, 0.1.1, 0.1.0 |
变更日志
- 0.1.0 (2024-01-18): 首次发布
- 0.1.1 (2024-01-18): 删除
scraper
依赖项
- 0.1.1 (2024-01-18): 删除
- 0.2.0 (2024-01-24): 拉取
/tags
页面而不是主仓库页面;通过urlencoding
进行URL解码;-
和-
选项;改进文档;更新依赖项- 0.2.1 (2024-03-11): 更新依赖项
- 0.2.2 (2024-07-26): 修复makefile;更新依赖项
依赖项
~9–22MB
~344K SLoC