Skip to content

Commit

Permalink
Document remote justfile workaround (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jun 20, 2024
1 parent 553adc1 commit aa43a66
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa43a66

Please sign in to comment.