Skip to main content

truncate_step_name

Function truncate_step_name 

Source
pub fn truncate_step_name(command: &str, max_len: usize) -> String
Expand description

Truncate a command string for use as a CI step name.

If the string is longer than max_len, truncates and appends “…”.