mirror of
https://github.com/sreedevk/deduplicator.git
synced 2026-09-13 17:16:31 +00:00
restructuring
This commit is contained in:
@@ -4,9 +4,9 @@ use chrono::DateTime;
|
||||
use colored::Colorize;
|
||||
use humansize::{format_size, DECIMAL};
|
||||
use std::{collections::HashMap, fs};
|
||||
use crate::params::App;
|
||||
use crate::params::Params;
|
||||
|
||||
fn format_path(path: &String, opts: &App) -> String {
|
||||
fn format_path(path: &String, opts: &Params) -> String {
|
||||
format!("...{}", path.replace(&opts.get_directory().unwrap(), ""))
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ fn print_divider() {
|
||||
println!("-------------------+-------------------------------------+------------------+----------------------------------+");
|
||||
}
|
||||
|
||||
pub fn print(duplicates: Vec<File>, opts: &App) {
|
||||
pub fn print(duplicates: Vec<File>, opts: &Params) {
|
||||
print_divider();
|
||||
println!(
|
||||
"| {0: <16} | {1: <35} | {2: <16} | {3: <32} |",
|
||||
|
||||
Reference in New Issue
Block a user