用 just 运行项目任务

在 justfile 中用命名配方替代零散 shell 脚本。

macOS自动化构建脚本低风险
运行 just --list 查看可用配方,再用 just <配方> 执行。

01命令

命令
$ just --list

02作用说明

just 读取 justfile 中的命名配方,在干净的 shell 中运行并按预期传递参数。与 make 不同,它面向命令而非文件时间戳,非常适合 test、lint、build、deploy 等快捷命令。

03风险

风险低风险
系统兼容性macOS with Homebrew installed
!注意: just 刻意不做依赖追踪;有顺序要求时请显式串联配方。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Homebrew formula: just
    Homebrew · vendor-doc · 2026-09-20
    依据: Packages just, a command runner that reads recipes from a justfile.

最后验证: 2026-09-22 · 分类: 开发者

06相关方案