Skip to main content

wrap_shell_command_lines

Function wrap_shell_command_lines 

Source
pub fn wrap_shell_command_lines(
    text: &str,
    first_width: usize,
    continuation_width: usize,
) -> Vec<String>
Expand description

Operator-aware word-wrap of a shell command without continuation markers.

Same breaks as wrap_shell_command_with_continuations but without the trailing " \\" suffixes, for renderers that style the marker separately (ANSI/TUI highlighting must not feed the marker to the bash grammar). Prefer this over wrap_shell_command for • Ran headers so every surface breaks identically.