On 03/01/2023 15.51, Maciej Barć wrote:
It appears there is additional output between the ebegin / eend. You
may want to consider dropping ebegin and eend. In general, the pattern
ebegin, edo, eend should probably be avoided.
I would like to keep the "Building ... [ OK ]" (made by ebegin) output
as it was before the change.
The reason the ebegin/edo/eend pattern should be avoided is that the
output will not be
Building ... [ OK ]
instead it will be
Building ... dune foo bar
[ OK ]
so the expectation that [ OK ] is on the right hand side is not fulfilled.
Note that edo.eclass also provides edob(), which can be used if it is
known that the command does not produce output.
For example
edob dune foo bar
should result in
Running dune foo bar [ OK ]
- Flow