You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that, inside a Just recipe, it is possible to explicitly delegate to recipes declared in sub- or super-directory Justfiles, by invoking Just recursively, as in:
foo:
@just subdir/bar
@just ../quux
While this feature may have been intended more for interactive use (since in Justfiles one may just as well type @just --justfile subdir/Justfile bar (…or maybe introduce --justdir to make it less clumsy), this made me wonder whether it would make sense to support this “short-cut” notation as part of a recipe’s dependencies, so that one could write:
foo: subdir/bar ../quux
(I guess if dependencies of type file – à la Make – ever become a thing this notation may prove confusing, though, or one may prefer a different symbol over the slash)
Thanks for building Just!
The text was updated successfully, but these errors were encountered:
eigengrau
changed the title
Support subdirectory/recipe notation in recipe dependencies
Support “subdirectory/recipe” notation in recipe dependencies
May 10, 2022
I notice that, inside a Just recipe, it is possible to explicitly delegate to recipes declared in sub- or super-directory Justfiles, by invoking Just recursively, as in:
While this feature may have been intended more for interactive use (since in Justfiles one may just as well type
@just --justfile subdir/Justfile bar
(…or maybe introduce--justdir
to make it less clumsy), this made me wonder whether it would make sense to support this “short-cut” notation as part of a recipe’s dependencies, so that one could write:(I guess if dependencies of type file – à la Make – ever become a thing this notation may prove confusing, though, or one may prefer a different symbol over the slash)
Thanks for building Just!
The text was updated successfully, but these errors were encountered: