Skip to main content

format_highlighted_command_auto

Function format_highlighted_command_auto 

Source
pub fn format_highlighted_command_auto(
    command: &str,
    span: &HighlightSpan,
) -> HighlightedCommand
Expand description

Format a command with caret highlighting using default settings.

Convenience wrapper around format_highlighted_command that:

  • Auto-detects TTY for color support
  • Uses the default window width