Skip to main content

preview_args

Function preview_args 

Source
pub fn preview_args(arguments: &str) -> String
Expand description

Produce a short preview of a JSON-encoded arguments string.

Picks up to two top-level fields, formats them as k=v, and clamps to ~60 characters with an ellipsis.