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,以及用來執行預設或指定 recipe 並傳入參數的執行指令。它也提供 justfile 語法範例,涉及變數、相依性、參數、預設值、文件註解與 shebang recipe。
適用情境
適用於在含有 justfile 的專案中工作,或使用者提到 just 或 justfile 的情況。它有助於查找正確的指令或 recipe 語法。
執行需求
不隨附指令碼,僅為說明文件。使用所述指令需要安裝 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 從公開儲存庫中收錄這些內容。

檢舉或申請下架