Skip to main content

detect_file_paths

Function detect_file_paths 

Source
pub fn detect_file_paths(text: &str) -> Vec<FileSpec>
Expand description

Auto-detect file paths from a unit description string.

Scans for patterns that look like source file paths (e.g., src/foo.rs, crates/bar/baz.ts). Supports optional mode suffixes:

  • path.rs:tail:50Tail(50)
  • path.rs:10-50Range(10, 50)

Deduplicates by path (first occurrence wins).