Just

casey/just/skills/just

作者 caseya1951a5ff7626f2dca436cd13cfd99cea7a84ca7无许可证36K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Reference for `just`, the command runner. Use when working in a project with a `justfile` or when the user mentions `just` or `justfile`.

AI 生成的概览

just 命令运行器的参考,涵盖发现、执行和 justfile 语法。

功能
本技能是 just 命令运行器的参考指南。它列出发现类命令,如 just --dump、--evaluate、--help、--list、--show 和 --summary,以及用于运行默认或指定配方并传入参数的执行命令。它还给出 justfile 语法示例,涉及变量、依赖、参数、默认值、文档注释和 shebang 配方。
适用场景
适用于在含有 justfile 的项目中工作,或用户提到 just 或 justfile 的场景。它帮助查找正确的命令或配方语法。
运行要求
不附带脚本,仅为说明文档。使用所述命令需要安装 just 命令运行器。

Just

Discovery

  • just --dump Print justfile
  • just --evaluate Print variable values
  • just --help Print detailed command-line syntax help
  • just --list Print recipes with descriptions
  • just --show <RECIPE> Print recipe source
  • just --summary Print recipes without descriptiosn

Execution

  • just Run default recipe
  • just <RECIPE> Run specific recipe
  • just <RECIPE> <ARG1> <ARG2 Run recipe with arguments

Syntax

just
executable := 'main'
# compile main.ccompile:  cc main.c -o {{ executable }}
# run mainrun: compile  ./{{ executable }}
# run testtest name: compile  ./bin/test {{ name }}
# start webserverserve port='8080':  python -m http.server {{port}}
# publish current tagpublish:  #!/usr/bin/env bash  set -euxo pipefail  tag=`git describe --tags --exact-match`  ./bin/check-tag $tag  git push origin $tag

Notes

The comment proceeding a recipe is used as its doc-comment, and included in just --list.

By default, each line of a recipe runs in a fresh shell. Recipes whose bodies start with #! are written to a file and executed as a script.

Commonly used commands and scripts should be turned into just recipes.

来源与署名

来源:casey/just位于skills/just提交a1951a5

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架