Crate task_runner_detector

Crate task_runner_detector 

Source
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§

ScanOptions
Options for customizing the scan behavior
Task
A single task that can be run
TaskRunner
A task runner configuration file with its discovered tasks

Enums§

RunnerType
The type of task runner detected
ScanError
Errors that can occur during scanning

Functions§

scan
Scan a directory tree for task runners using default options
scan_with_options
Scan a directory tree for task runners with custom options

Type Aliases§

ScanResult
Result type for scan operations