gleamdoc/output

Terminal styling for human-readable command output.

Types

Identifies the structure of human-readable output to style.

pub type Style {
  Documentation
  SearchResults
  Packages
  IndexResult
}

Constructors

  • Documentation
  • SearchResults
  • Packages
  • IndexResult

Values

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.

Search Document