Allow passing arguments/options/flags to subtasks #3760
bartsmykla
started this conversation in
Ideas
Replies: 1 comment
-
I don't think this is necessary. You can just set an environment variable like this: [tasks."generate:policy"]
run = "POLICY_NAME=circuit-breaker mise run generate:tools:policy-gen ::: generate:policy:core-resources ::: generate:policy:other-resources" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Mise doesn’t currently support passing dynamic arguments, options, or flags from a main task to its subtasks. This makes it difficult to create workflows where all subtasks share a common argument, like a policy name.
Here are possible approaches to solve this:
Inline argument substitution
Automatic argument passing
Using environment variables from parent task
Expected Behavior
When running:
All subtasks should receive the
circuit-breaker
argument. Expected output:Benefits
Beta Was this translation helpful? Give feedback.
All reactions