Add config printing, explain mode, completions, and docs
This commit is contained in:
@@ -19,7 +19,11 @@ use crate::utils::{sanitize_filename, Semaphore};
|
||||
pub fn run(mut settings: Settings) -> Result<Report> {
|
||||
ensure_ffprobe()?;
|
||||
|
||||
let output = Arc::new(Output::new(&settings.color, settings.verbose));
|
||||
let output = Arc::new(Output::new(
|
||||
&settings.color,
|
||||
settings.verbose,
|
||||
settings.dry_run_summary,
|
||||
));
|
||||
if settings.no_lookup {
|
||||
output.warn("No-lookup mode enabled: using filename/LLM only (no external providers).");
|
||||
}
|
||||
@@ -245,6 +249,18 @@ fn process_file(
|
||||
"no match",
|
||||
None,
|
||||
);
|
||||
if settings.explain && !outcome.candidates.is_empty() {
|
||||
output.detail(" Candidates:");
|
||||
for candidate in summarize_candidates(&outcome.candidates, 5) {
|
||||
output.detail(&format!(
|
||||
" - {} ({}) [{}] score {:.1}",
|
||||
candidate.title,
|
||||
candidate.year.map(|y| y.to_string()).unwrap_or_else(|| "?".into()),
|
||||
candidate.provider,
|
||||
candidate.score * 100.0
|
||||
));
|
||||
}
|
||||
}
|
||||
let entry = ReportEntry {
|
||||
input: path.display().to_string(),
|
||||
status: "skipped".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user