View Source Doctor.Reporters.OutputUtils (Doctor v0.21.0)

This module provides convenience functions for use when generating reports

Link to this section Summary

Functions

Generate a string with a configure amount of width and padding

Generate a line in a table with the given width and padding. Expects a list with either a 2 or 3 element tuple.

Prints a divider of a given length

Prints a string in red

Prints a checkmark of an X if true of false is provided respectively

Prints a string in green

Link to this section Functions

Link to this function

gen_fixed_width_string(value, width, padding \\ 2)

View Source

Generate a string with a configure amount of width and padding

Link to this function

generate_table_line(line_data)

View Source

Generate a line in a table with the given width and padding. Expects a list with either a 2 or 3 element tuple.