Andrey Nering

Results 284 comments of Andrey Nering

Hey @benc-uk, have you tried the [`default` template function](https://go-task.github.io/slim-sprig/defaults.html)? That's how we usually suggest to handle it considering how Task work today. ```yaml tasks: echo: vars: MESSAGE: '{{.MESSAGE | default...

I'm going to close this as a duplicate of #475 now that `defer:` is implemented: - https://github.com/go-task/task/pull/626 - https://taskfile.dev/usage/#doing-task-cleanup-with-defer The ability to run something on error is being track on...

IDEA: We could easily add this by adding a new special variable on [`defer:`](https://taskfile.dev/usage/#doing-task-cleanup-with-defer) commands. We need to think about the best UX, though. It could be `IS_ERROR` (bool), `EXIT_CODE`...

Closing as duplicate of #1203 and #1204.

An initial version was just merged to master. Contributions are welcome to add more fields to this output.

@danquah I think that's a good idea, indeed. I would be happy to accept a PR for that.

My two cents on this... This PR has only two up votes (👍) today, while many other issues have a lot more than this. This makes me think that few...

This was already done, just this issue forgotten open. See: - https://taskfile.dev/installation/#winget - https://github.com/go-task/task/pull/1090 - https://github.com/microsoft/winget-pkgs/tree/master/manifests/t/Task/Task