Expand description
Help text formatting utilities.
This module provides the HelpFormatter struct for creating well-formatted
help output for CLI commands, including proper text wrapping, indentation,
and definition list formatting.
Structs§
- Help
Formatter - Help text formatter with terminal-aware wrapping.
Functions§
- detect_
terminal_ width - Detect the terminal width.
- get_
terminal_ width - Get terminal width with a fallback default.
- make_
rule - Create a horizontal rule of the specified character.
- split_
into_ lines - Split text into lines that fit within the specified width.
- truncate_
text - Truncate text to fit within width, adding ellipsis if needed.
- wrap_
text - Wrap text to fit within the specified width.