How to share variables among tasks? #237
Answered
by
nat-n
fritz-trawa
asked this question in
Q&A
-
I haven't been able to find out how to share variables among tasks. What I mean is this [tool.poe.tasks]
my_src = "./some/string/"
[tool.poe.tasks.typecheck]
cmd = "mypy $my_src" <-- THIS
[tool.poe.tasks.lint]
cmd = "ruff $my_src"
surely it must be possible, but how? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
nat-n
Aug 20, 2024
Replies: 1 comment 3 replies
-
Hi @fritz-trawa, If I understand your question correctly there are two mechanisms appropriate for setting a variable in one place for use by multiple tasks.
Does that solve your problem? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
fritz-trawa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @fritz-trawa,
If I understand your question correctly there are two mechanisms appropriate for setting a variable in one place for use by multiple tasks.
Does that solve your problem?