How can I refer to the last exit status in defer
?
#1472
-
Currently I have this version: "3"
tasks:
check:
cmds:
- defer: echo 'done'
- go build
- go test ./...
This works well but I want to change the body of
Here's the pseudo configuration: version: "3"
tasks:
check:
cmds:
- defer:
- success: echo 'success'
- failure: echo 'failure'
- go build
- go test ./... Is it possible to achieve that? If so, how? (By the way, the configuration above is just a minimal example. In my real use-case, I want to execute more complicated commands in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @your-diary, That's a valid use case, but not currently supported. I just opened #1484 as a feature request so this may be considered in the future. |
Beta Was this translation helpful? Give feedback.
Hi @your-diary,
That's a valid use case, but not currently supported.
I just opened #1484 as a feature request so this may be considered in the future.