Skip to content

Commit

Permalink
Merge pull request #22 from sreedevk/development
Browse files Browse the repository at this point in the history
Version 0.1.1
  • Loading branch information
sreedevk authored Jan 18, 2023
2 parents ae87e4e + 8ac78fb commit 01dd93a
Show file tree
Hide file tree
Showing 15 changed files with 240 additions and 490 deletions.
137 changes: 32 additions & 105 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "deduplicator"
version = "0.0.9"
version = "0.1.1"
edition = "2021"
description = "find,filter,delete Duplicates"
license = "MIT"
Expand All @@ -13,16 +13,15 @@ anyhow = "1.0.68"
chrono = "0.4.23"
clap = { version = "4.0.32", features = ["derive"] }
colored = "2.0.0"
crossterm = "0.25.0"
dashmap = { version = "5.4.0", features = ["rayon"] }
fxhash = "0.2.1"
glob = "0.3.0"
humansize = "2.1.2"
indicatif = { version = "0.17.2", features = ["rayon", "tokio"] }
itertools = "0.10.5"
memmap2 = "0.5.8"
prettytable-rs = "0.10.0"
rayon = "1.6.1"
sqlite = "0.30.3"
thiserror = "1.0.38"
tokio = { version = "1.23.0", features = ["full"] }
tui = "0.19.0"
unicode-segmentation = "1.10.0"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Usage: deduplicator [OPTIONS]
Options:
-t, --types <TYPES> Filetypes to deduplicate (default = all)
--dir <DIR> Run Deduplicator on dir different from pwd
-n, --nocache Don't use cache for indexing files (default = false)
-i, --interactive Delete files interactively
-h, --help Print help information
-V, --version Print version information
Expand Down
18 changes: 18 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use crate::output;
use crate::params::Params;
use crate::scanner;
use anyhow::Result;

pub struct App;

impl App {
pub fn init(app_args: &Params) -> Result<()> {
let duplicates = scanner::duplicates(app_args)?;
match app_args.interactive {
true => output::interactive(duplicates, app_args),
false => output::print(duplicates, app_args),
}

Ok(())
}
}
28 changes: 0 additions & 28 deletions src/app/event_handler.rs

This file was deleted.

4 changes: 0 additions & 4 deletions src/app/events.rs

This file was deleted.

Empty file removed src/app/formatter.rs
Empty file.
89 changes: 0 additions & 89 deletions src/app/mod.rs

This file was deleted.

Loading

0 comments on commit 01dd93a

Please sign in to comment.