Skip to main content

module_workflow

Function module_workflow 

Source
pub fn module_workflow(
    scan: &ScanSettings,
    module: &ModuleSettings,
) -> Result<ModuleReceipt>
Expand description

Runs the module summary workflow with pure settings types.

§Arguments

  • scan - Scan settings (paths, exclusions, etc.)
  • module - Module-specific settings (roots, depth, etc.)

§Returns

A ModuleReceipt containing the module breakdown.

§Example

use tokmd_core::{module_workflow, settings::{ScanSettings, ModuleSettings}};

let scan = ScanSettings::current_dir();
let module = ModuleSettings {
    module_depth: 2,
    ..Default::default()
};

let receipt = module_workflow(&scan, &module).expect("Module scan failed");
assert!(receipt.report.rows.len() > 0);