Function narrate::report::status

source ·
pub fn status<T, M>(title: T, msg: M, color: Color)where
    T: AsRef<str>,
    M: AsRef<str>,
Expand description

Report a status to stderr.

    <title>: <msg>

The title will be justified in the style of Cargo’s statuses. If stderr is directed to a TTY (as is normal for a CLI app), it will have it’s color set.

Examples found in repository?
examples/status.rs (line 7)
6
7
8
fn main() {
    report::status("Created", "new project `spacetime`", Color::Green);
}