truncate_for_display

Function truncate_for_display 

Source
fn truncate_for_display(s: &str, max_chars: usize) -> String
Expand description

Trim a JSON snippet to max_chars for one-line display, appending if it was truncated. Used to keep --diag sagas cmd columns readable when commands carry large payloads (e.g. block meta).