restructuring

This commit is contained in:
sreedev
2023-01-01 23:14:28 -05:00
parent 8e4eddc145
commit c2852c6d54
5 changed files with 12 additions and 12 deletions

View File

@@ -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} |",