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
Command results are rich text that can be formatted into HTML. At the same time, we must ensure that the result is readable and decoupled from the command to facilitate testing and comparison of the final output.
Given this, we should enforce results in Markdown format and later use a result builder to convert them to HTML. This approach allows us to generate different results based on the platform. For example, if a platform does not support <h> tags, we can use bold text as an alternative.
Another advantage of a result builder is pattern recognition. For instance, the builder can identify strings with 42 characters starting with pc1..., treat them as Mainnet addresses, and generate links to the PacViewer address.
Tasks:
Define raw results for each command.
Ensure results can be formatted and compared in unit tests.
Define a general ResultBuilder.
Define platform-specific result builders that share common properties with the general builder.
The text was updated successfully, but these errors were encountered:
Command results are rich text that can be formatted into HTML. At the same time, we must ensure that the result is readable and decoupled from the command to facilitate testing and comparison of the final output.
Given this, we should enforce results in Markdown format and later use a result builder to convert them to HTML. This approach allows us to generate different results based on the platform. For example, if a platform does not support
<h>
tags, we can use bold text as an alternative.Another advantage of a result builder is pattern recognition. For instance, the builder can identify strings with 42 characters starting with
pc1...
, treat them as Mainnet addresses, and generate links to the PacViewer address.Tasks:
ResultBuilder
.The text was updated successfully, but these errors were encountered: