Skip to main content

Module display

Module display 

Source
Expand description

Shared output formatting for consortium CLI tools.

Provides nh-inspired progress reporting and output formatting.

Structs§

LineStreamHandler
Streaming per-line output handler: prints each completed output line as soon as it arrives instead of buffering everything until command exit.
ProgressHandler
EventHandler that drives an indicatif ProgressBar on each node completion.
ProgressState
Tracks completed/failed node counts. Shared between ProgressHandler and caller.

Functions§

create_progress
Create an nh-style progress bar + state for cluster operations.
finish_progress
Finish the progress bar with a summary line.
print_gathered_header
Print gathered output with a node header.
print_line_with_label
Print a single line with node prefix: node1: output