Refactor project and index handling

- Standardized formatting across key functions in `project.rs`.
- Updated `index::handle` and `build_index` to incorporate the `config` parameter.
- Improved index-building logic to include project details and enhanced issue tracking.
- Replaced variable names like `files` with `paths` for clarity in `scan.rs`.
This commit is contained in:
elipeter 2025-06-17 17:42:41 +02:00
parent 0eecf886f2
commit ead64c0bd3
4 changed files with 66 additions and 36 deletions

View file

@ -17,7 +17,7 @@ pub fn handle_command(
scan::handle(&path, no_index, rebuild_index, format, high_only, database_dir, config)
}
Commands::Index { action } => {
index::handle(action, database_dir)
index::handle(action, database_dir, config)
}
Commands::List { verbose } => {
list::handle(verbose, database_dir)