回退到父 justfile
如果在 justfile 中没有找到配方,并且设置了 fallback,just 将在父目录及其上级目录寻找justfile,直到到达根目录。just 在找到其中的 fallback 设置为false 或未设置的 justfile 时将停止。
举个例子,假设当前目录包含这个 justfile:
set fallback
foo:
echo foo
而父目录包含这个 justfile:
bar:
echo bar
$ just --unstable bar
Trying ../justfile
echo bar
bar