just
Inspect, run, and organize project commands with just. This skill explains how to find available recipes—named tasks in a justfile—check their contents, pass arguments, and define reusable commands with dependencies.
中文简介正在准备中。当前显示英语简介。
原文查看原文说明
Reference for `just`, the command runner. Use when working in a project with a `justfile` or when the user mentions `just` or `justfile`.
适用场景
- Finding available project commands
- Running builds and tests with arguments
- Turning frequent commands into reusable tasks
- Checking task dependencies and shell behavior
包含的文件(1)
- SKILL.md1.4 KB
SKILL.md(原文)
安装前可以查看交给 AI 代理的指令内容。
Just
Discovery
just --dumpPrint justfilejust --evaluatePrint variable valuesjust --helpPrint detailed command-line syntax helpjust --listPrint recipes with descriptionsjust --show <RECIPE>Print recipe sourcejust --summaryPrint recipes without descriptiosn
Execution
justRun default recipejust <RECIPE>Run specific recipejust <RECIPE> <ARG1> <ARG2Run recipe with arguments
Syntax
executable := 'main'
# compile main.c
compile:
cc main.c -o {{ executable }}
# run main
run: compile
./{{ executable }}
# run test
test name: compile
./bin/test {{ name }}
# start webserver
serve port='8080':
python -m http.server {{port}}
# publish current tag
publish:
#!/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.
评价
还没有评价。欢迎分享你的使用感受。
评论
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。