Disabling Changing Directory
just normally executes recipes with the current directory set to the
directory that contains the justfile. This can be disabled using the
[no-cd] attribute1.9.0. This can be used to create recipes which
use paths relative to the invocation directory, or which operate on the current
directory.
For example, this commit recipe:
[no-cd]
commit file:
git add {{file}}
git commit
Can be used with paths that are relative to the current directory, because
[no-cd] prevents just from changing the current directory when executing
commit.