Skip to main content

PackageOutput

Trait PackageOutput 

Source
pub trait PackageOutput {
    // Required methods
    fn status(&self, line: &str);
    fn status_dim(&self, line: &str);
    fn success(&self, line: &str);
    fn error(&self, line: &str);
}
Expand description

Output sink for status/error lines. Implementations capture into a buffer (tests) or write to stdout/stderr (production, via ProductOutput).

Required Methods§

Source

fn status(&self, line: &str)

Write a status line (stdout in TS).

Source

fn status_dim(&self, line: &str)

Write a dimmed status line (stdout, chalk.dim).

Source

fn success(&self, line: &str)

Write a success line (stdout, chalk.green).

Source

fn error(&self, line: &str)

Write an error line (stderr, chalk.red).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§