You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently validation report is output as a JSON object. We have a --format flag that lets you optionally set JUnit for XML output, but no option for easy human-readable data in a colour-coded table.
I think there's also room for a summary of the errors, so that you can see at a glance how many errors and validations there were.
Been looking at this on my dev-316 branch - this is what I've got so far - this is using a combination of cliui / chalk and string-table ( which is like console.table() but allows manipulation/interrogation of the generated string )
Currently if you have true under "Issues Found?` it will change colour depending on the current state. Got an error? It will be red - warning? Yellow.
I tried displaying the table of output using cliui too but it really struggles with variable length content from my experiments.
Thels
added a commit
to Thels/architecture-as-code
that referenced
this issue
Nov 27, 2024
Feature Request
Description of Problem:
Currently validation report is output as a JSON object. We have a --format flag that lets you optionally set JUnit for XML output, but no option for easy human-readable data in a colour-coded table.
I think there's also room for a summary of the errors, so that you can see at a glance how many errors and validations there were.
Potential Solutions:
Add a new output mode that uses a library to display validation in a table, rather than as JSON.
This may not even require a library - see the
console.table()
method: https://developer.mozilla.org/en-US/docs/Web/API/console/table_staticColoured labels for errors would also help improve the glance value - one library I found was
colors
: https://www.npmjs.com/package/colorsThe text was updated successfully, but these errors were encountered: