Skip to content
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

Set default working dir for the whole justfile #2273

Closed
nyurik opened this issue Jul 24, 2024 · 3 comments
Closed

Set default working dir for the whole justfile #2273

nyurik opened this issue Jul 24, 2024 · 3 comments

Comments

@nyurik
Copy link
Contributor

nyurik commented Jul 24, 2024

Frequently I need to place justfile in a different location from where the default working dir should be. Would it be possible to have some global set command to modify the working directory, either for the current justfile, or possibly for all of the included ones as well (unless they override it?). The multiple justfiles could in theory be solved with modules, so this is a lower priority.

@casey
Copy link
Owner

casey commented Jul 28, 2024

I think this would be pretty useful, and not super complicated. Currently, settings are not shared between modules, so adding some kind of setting sharing would be something for another PR. set working-directory := … would be pretty easy to add. Marking as good first issue in case someone wants to take a crack at it.

@nyurik
Copy link
Contributor Author

nyurik commented Jul 29, 2024

I hacked together an implementation in #2283, but it is still missing the actual workdir setting. May need some guidance here.

@casey
Copy link
Owner

casey commented Aug 1, 2024

Implemented in #2283.

@casey casey closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants