module

Mangrullo::DisplayFormatter

Display formatting utilities for CLI and web interfaces

Class methods

format_container_for_log(container : ContainerInfo) : String

Format container info for logging

Source
format_error_with_context(message : String, context : String | Nil = nil) : String

Format error message with context

Source
format_progress_bar(current : Int32, total : Int32, width : Int32 = 40) : String

Format progress bar

Source
format_results_as_html_table(results : Array(NamedTuple(container: ContainerInfo, updated: Bool, error: String | Nil)), options : HtmlTableOptions = HtmlTableOptions.new) : String

Format results as HTML table

Source
format_results_as_table(results : Array(NamedTuple(container: ContainerInfo, updated: Bool, error: String | Nil)), options : TableOptions = TableOptions.new) : String

Format container results as CLI table

Source
format_status_with_color(status : String, error : String | Nil = nil) : String

Format container status with color

Source
format_unified_results_as_html_table(results : Array(NamedTuple(container: ContainerInfo, updated: Bool, error: String | Nil, needs_update: Bool | Nil, reason: String | Nil)), options : HtmlTableOptions = HtmlTableOptions.new) : String

Format unified results as HTML table

Source
format_unified_results_as_table(results : Array(NamedTuple(container: ContainerInfo, updated: Bool, error: String | Nil, needs_update: Bool | Nil, reason: String | Nil)), options : TableOptions = TableOptions.new) : String

Format unified results (with dry run info) as CLI table

Source
truncate_image_name(image : String, max_length : Int32 = Constants::Table::MAX_COLUMN_WIDTH) : String

Truncate image name for display - delegate to ImageNameParser

Source
truncate_string(str : String, max_length : Int32) : String

Truncate string with ellipsis - delegate to StringDisplayUtils

Source

Nested types