Including or referencing other justfiles #1289
tbarusseau
started this conversation in
Ideas
Replies: 1 comment
-
I like the namespacing of includes. But this has been discussed and though namespacing helps in many cases includes are just too simple of an external source mechanism to be reliable with all that Just can do and wants to do in the future. Recipes often need to have a reference to the directory they are in. That context changes with includes. Unfortunately, only a full import system can resolve these sort of context aware issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One feature that I would like is "re-exporting" or "referencing" existing recipes of other
justfile
s.Considering this directory structure:
With this in the top-level
justfile
:And this in the lower-level
justfile
s:Then, we would have this from the top-level directory:
Obviously the syntax/keywords are just placeholders. With these changes,
just
doesn't need any context-awareness of any sort, you can just check if the referenced file exists or not and add its existing recipes using a dedicated "nesting" syntax.It might be a niche usecase, but it would make my life so much better! And might be a dealbreaker whether or not we adopt
just
.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions