-
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
[Feature Request] An option to disable change directory for all recipes in justfile #2291
Labels
Comments
I think |
I have started tackling this. I think it can be combined with #2082, to avoid multiplying attributes beyond necessity:
|
@artm That all seems reasonable to me! |
artm
added a commit
to artm/just
that referenced
this issue
Aug 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
just
is a great tool and I really like it. However this automatic change directory behavior and using[no-cd]
in all my recipes is a bit annoying (but still acceptable).Would you consider adding some setting to disable this behaviour? Something like
set no-cd
and new attribute[do-cd]
or something like this?My use case.
All projects I'm working on are in
~/Projects
.I want to reuse one
justfile
located in~/Projects/justfile
. All those projects contain terraform configuration that I'm working on. When I want to change infrastructure of some project I will:~/Projects/my-project-2
validate
,fmt
,plan
apply
infrastructureThere are some other common actions I do on all projects also but this is not important.
To work with
terraform
I need to be inside the directory that contains configuration. To make it work withjust
each recipe needs to have this[no-cd]
added.My working
justfile
looks like similar to this:All is working fine but would be great if I could just use something like
set no-cd
and remove all those[no-cd]
lines. If I wanted to change dir to jsutfile dir I could then add[do-cd]
in recipe and it would work the standard way.Would you consider adding setting like this?
Thanks
The text was updated successfully, but these errors were encountered: