Document remote justfile workaround (#2175)

This commit is contained in:
Casey Rodarmor 2024-06-19 17:18:03 -07:00 committed by GitHub
parent 553adc1004
commit aa43a664ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3668,6 +3668,22 @@ ls:
echo '{{absolute_path(".")}}'
```
### Remote Justfiles
If you wish to include a `mod` or `import` source file in many `justfiles`
without needing to duplicate it, you can use an optional `mod` or `import`,
along with a recipe to fetch the module source:
```just
import? 'foo.just'
fetch:
curl https://raw.githubusercontent.com/casey/just/master/justfile > foo.just
```
Given the above `justfile`, after running `just fetch`, the recipes in
`foo.just` will be available.
### Alternatives and Prior Art
There is no shortage of command runners! Some more or less similar alternatives