Skip to main content

humanize_tool_name

Function humanize_tool_name 

Source
pub fn humanize_tool_name(name: &str) -> String
Expand description

Derives a human display name from a machine tool name.

Splits on _/-/whitespace, lowercases each token, then capitalizes the first letter of the first word: paid_fetch"Paid fetch", delete-file"Delete file", calculator"Calculator". Input that is already spaced is normalized the same way ("delete file""Delete file"). An empty input yields an empty string.