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 would like to conditionally select a recipe based on argument. For example, I have a list of projects in golang, and a list of projects in rust. I want to build any one of them based on the name of the project.
I want to execute something like:
$ just build g1 # A go project
OR
$ just build r1 # A rust project.
and have just pick the right recipe. Here is what I tried - a recipe called build that selects the recipe to run (as a dependency) based on the name of the project:
Obviously this doesn't work because specifying this type of conditional dependency for build is not supported. Is there an recommended way to achieve this, ideally without recursively calling just?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to conditionally select a recipe based on argument. For example, I have a list of projects in golang, and a list of projects in rust. I want to build any one of them based on the name of the project.
I want to execute something like:
and have just pick the right recipe. Here is what I tried - a recipe called
build
that selects the recipe to run (as a dependency) based on the name of the project:Obviously this doesn't work because specifying this type of conditional dependency for
build
is not supported. Is there an recommended way to achieve this, ideally without recursively calling just?Beta Was this translation helpful? Give feedback.
All reactions