parse_examples

Function parse_examples 

Source
pub fn parse_examples(stdout: &str, stderr: &str) -> Vec<Example>
Expand description

Parse examples from help text.

Looks for “Examples:” or “EXAMPLES:” sections and extracts:

  • Command lines (typically starting with $, >, or the command name)
  • Descriptions (lines before or after command lines)
  • Tags (inferred from context or explicit tags)