Expand description
Task Runner Detector - Discover and run tasks from various config files
This crate scans a directory tree and discovers runnable tasks from common task runner configuration files like package.json, Makefile, Cargo.toml, etc.
§Example
use task_runner_detector::scan;
let runners = scan(".").unwrap();
for runner in runners {
println!("{:?} @ {}", runner.runner_type, runner.config_path.display());
for task in &runner.tasks {
println!(" {} -> {}", task.name, task.command);
}
}Structs§
- Scan
Options - Options for customizing the scan behavior
- Task
- A single task that can be run
- Task
Runner - A task runner configuration file with its discovered tasks
Enums§
- Runner
Type - The type of task runner detected
- Scan
Error - Errors that can occur during scanning
Functions§
- scan
- Scan a directory tree for task runners using default options
- scan_
streaming - Scan a directory tree for task runners, streaming results through a channel. Uses parallel walking for better performance on large directories. Returns a JoinHandle that completes when scanning is done.
- scan_
with_ options - Scan a directory tree for task runners with custom options. Uses scan_streaming internally and collects results.
Type Aliases§
- Scan
Result - Result type for scan operations