pretty_output

Function pretty_output 

Source
pub fn pretty_output<M: AsRef<str> + Display>(
    out_label: OutputLabel<'_>,
    message: M,
) -> String
Expand description

Pretty a message with a given label and a given message color

§Panics

We panic if we can’t determine the width of the stdout TTY. But it is only used in a part where we check that we are connected a real TTY