pub fn cmd_patterns_in(dir: &Path) -> i32
List learned pattern files from a single directory (legacy test helper).