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

just --dump should provide recipe order #1552

Open
indigoviolet opened this issue Feb 18, 2023 · 1 comment
Open

just --dump should provide recipe order #1552

indigoviolet opened this issue Feb 18, 2023 · 1 comment

Comments

@indigoviolet
Copy link

I was hoping to write something that ran the recipes in a justfile in order (lots of individual set up steps to bootstrap a new machine). I can use just --summary --unsorted, but it would be cleaner to use just --dump --dump-format=json and sort by some recipe order info.

@neunenak
Copy link
Contributor

The most straightforward way to do this is probably to just add a new recipe that recursively invokes just with the other recipes you need, in the order they should be invoked in. e.g. something like:

install_dependency_a:
    ...

install_dependency_b:
   ...
   
bootstrap:
    @just install_dependency_b
    @just install_dependency_a

This requires a bit of manual setup, but it means you can be explicit about what recipes you run, while still having the freedom to add additional recipes to the justfile that won't interfere with the bootstrap process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants