Add default show-not-deleted option

If set to `no`, PFERD won't print status or report messages for not deleted files
This commit is contained in:
Mr. Pine
2023-03-15 15:33:42 +01:00
committed by I-Al-Istannen
parent 68c398f1fe
commit e41a22149e
8 changed files with 45 additions and 5 deletions

View File

@ -180,7 +180,7 @@ class Pferd:
log.report(f" [bold bright_magenta]Deleted[/] {fmt_path(path)}")
for path in sorted(crawler.report.not_deleted_files):
something_changed = True
log.report(f" [bold bright_magenta]Not deleted[/] {fmt_path(path)}")
log.report_not_deleted(f" [bold bright_magenta]Not deleted[/] {fmt_path(path)}")
for warning in crawler.report.encountered_warnings:
something_changed = True