|
I opened a feature request here: #2754 — TL;DR I would like to set And I kinda need that feature now. Is there any alternative solution I could implement today? |
Replies: 1 comment
|
This is now supported directly. On just 1.51.0 or newer, put this at the top of the justfile: All recipes in that module will run from the caller's current working directory instead of changing to the directory containing the justfile. If you want one fixed directory for the whole module instead, use: Both settings can be overridden for individual recipes with [no-cd] or [working-directory: '...']. Current documentation: global no-cd and working-directory. For older just versions, use --working-directory . together with --justfile, or add [no-cd] to each recipe. If this solves the file-wide configuration, please mark it as accepted. |
This is now supported directly. On just 1.51.0 or newer, put this at the top of the justfile:
All recipes in that module will run from the caller's current working directory instead of changing to the directory containing the justfile.
If you want one fixed directory for the whole module instead, use:
Both settings can be overridden for individual recipes with [no-cd] or [working-directory: '...']. Current documentation: global no-cd and working-directory.
For older just versions, use --working-directory . together with --justfile, or add [no-cd] to each recipe. If this solves the file-wide configur…