Terminal styling for human-readable command output.
Identifies the structure of human-readable output to style.
pub type Style {
Documentation
SearchResults
Packages
IndexResult
}
Constructors
pub fn error(message: String) -> String
Applies ANSI error styling to a message.
pub fn text(text: String, style: Style) -> String
Applies ANSI styling to human-readable output.