5个版本

0.1.4 2024年3月30日
0.1.3 2024年3月23日
0.1.2 2024年3月23日
0.1.1 2023年7月16日
0.1.0 2022年9月16日

开发工具 中排名第433

Download history 4/week @ 2024-07-07

每月下载量208

MIT许可证

300KB
92

ghlast

Latest Version Downloads License Continuous Integration Status

一个命令行界面(CLI),用于检查发布到GitHub仓库的最后一个版本。

Screenshot of ghlast inspecting ripgrep

为什么

相比于仅保存 /owner/name/releases/latest/download/asset-name.zip 的URL,这个CLI的好处是它能获取预发布版本。

例如,在撰写本文时,Neovim 项目有一个v0.8.0的预发布构建,他们将其标记为 nightly。如果你使用上面的静态URL,你将得到稳定的v0.7.2构建。

Screenshot of ghlast inspecting neovim

我个人用它来获取最新的二进制文件...

#!/usr/bin/env bash

URL="$(ghlast neovim neovim --output assets | grep 'appimage$')"
curl "${URL}" --location --silent --output ~/bin/nvim && \
  chmod 755 ~/bin/nvim

安装

使用cargo进行安装

cargo install ghlast

预编译的二进制文件

另一种方法是下载并运行预编译的二进制文件

https://github.com/nickjer/ghlast/releases

依赖关系

~9–18MB
~323K SLoC