Close on success
From @PeterPablo:
When considering this wish [#39], please also consider to add an option to automatically close the output (buffer or panel) on success.
Is the use for this that you simply don't want to see any output at all?
I'm wondering whether instead of having a title attribute to name output buffer, I should instead have a buffer attribute, which can either be a string that names the buffer, or null to indicate that we don't want a buffer.
Without a buffer we would effectively just discard all output. Would that achieve what you want?
(Of course, if the command fails we need to know...but we can work that out once I have better understood what you're trying to achieve.)
My use case is the compilation of LaTex. I don't want to be bothered if compilation is successful, but am interested in the output if there is an error present.
Seems straightforward.
My previous comment was along the lines of 'suppress all output unless there is an error', but I think I overcomplicated it since then we would then need to specify where we want the error to be written to (panel or buffer).
All that we really need is a flag that says 'if the task ran successfully suppress the output'.
A bit of thought might be needed as to how this relates to long-running jobs, though.