How to pass boolean argument downstream to subtask? #143
Unanswered
mgzenitech
asked this question in
Q&A
Replies: 1 comment
-
Hi @mgzenitech, little bit hard to understand what you're asking without an explanation, but I guess your intention is that You want the It looks like all you're missing to make this work is to set the type of the compress arg for So I would suggest the following variation: [tool.poe.tasks.build]
sequence = [
"_build",
"_squash --compress ${compress}"
]
[[tool.poe.tasks.build.args]]
name = "compress"
options = ["--compress", "-c"]
help = "Compress the layers?"
type = "boolean"
[tool.poe.tasks._build]
...
[tool.poe.tasks._squash]
control.expr = "compress"
default = "pass"
args = ["compress"]
[[tool.poe.tasks._squash.switch]]
case = "True"
shell = "echo 1" |
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
-
Beta Was this translation helpful? Give feedback.
All reactions