feat(dry-run): print type of file to remove

This commit is contained in:
Matteo Settenvini 2025-01-30 16:32:55 +01:00
parent 7ec6467b3b
commit d033b9d29a
Signed by: matteo
GPG key ID: 1C1B12600D81DE05

View file

@ -179,7 +179,12 @@ impl Runner {
} else {
if args.dry_run {
Box::new(|path| {
log::info!("(dry-run) would remove {}", path.display());
let ty = if path.is_symlink() {
"symlink"
} else {
"regular file"
};
log::info!("(dry-run) would remove {} {}", ty, path.display());
Ok(())
})
} else {