Open dc-mak opened 3 weeks ago
@samcowger
Anyone with permission to do so can go ahead and assign this to me.
The function also serves as a progress bar through, so some care will need to be taken (perhaps rewriting/overwriting stdout mutably like dune does?)
If I understand this correctly, you're worried about interleaved errors polluting CN output such that users are unable to recognize progress indicators in the midst of error reporting. This is a valid concern, and exactly what --quiet
attends to, which was implemented in #474 - it would silence rich error reporting and only report single-line pass/fail information per function.
No it was more that I don't know if it's possible/easy to report errors as they arise per function (i.e. it would be bad if users had to wait for the whole thing to finish before seeing any output when --quiet
is not passed).
https://github.com/rems-project/cerberus/pull/474 and https://github.com/rems-project/cerberus/commit/e5a5131fbbe4ef8621a58993a9619d72fe93b163 added the ability to report multiple errors, which is very useful. However, the output is a little less structured as a result. Perhaps this won't matter so much because the primary way of interacting will be an LSP client, but fwiw here's a couple of small suggestions:
--fail
/--pass
)The function also serves as a progress bar through, so some care will need to be taken (perhaps rewriting/overwriting stdout mutably like dune does?)
Current:
Proposed:
Alternatively: One File to Rule Them All