-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for global justfiles #1648
Comments
if you try a command that isnt in your justfile, iirc just will searching up the file tree looking for one. I have a "global" justfile with general commands at ~/justfile and then project specific commands i put in a justfile at the root of the repository. |
This seems reasonable to me, and pretty easy to implement. If you pass |
I didn't consider that In my Docker projects, I typically have a Secondly, I'm often working under mounted filesystems or subtrees that aren't descendants of
I don't have a strong opinion about the location for global justfiles (I'd probably use Additionally, if you do support |
I have two workarounds for a similar need (although they are not exactly what you are asking for): This in my alias j='just '
alias .j='just --justfile ~/.justfile --working-directory .' so And a
|
I'm a recovering Task / Taskfile refugee, who's recently got into
just
. One of the features of Task that I use extensively is the-g
(global) option, which will only search the user's$HOME
directory (and no subdirectories) for a Taskfile.This is very handy for running global tasks or recipes that do not need the current directory context, but it is also useful for running tasks that are somewhat generic, but do need the current directory as context (e.g.
docker compose
commands that use the services from the current working directory). Obviously this can be replicated in just with something likejust $HOME/
, but when used with flags and parameters, this quickly becomes unwieldy.The text was updated successfully, but these errors were encountered: