pub enum Command {
Stats,
Report,
Check {
max_exact: Option<usize>,
max_near: Option<usize>,
max_exact_percent: Option<f64>,
max_near_percent: Option<f64>,
},
Ignore {
fingerprint: String,
reason: Option<String>,
},
Ignored,
Cleanup {
dry_run: bool,
},
}Expand description
CLI subcommands shared between cargo-dupes and code-dupes.
Variants§
Stats
Show duplication statistics only.
Report
Show full duplication report (default).
Check
Check for duplicates and exit with non-zero if thresholds exceeded.
Fields
Ignore
Add a fingerprint to the ignore list.
Fields
Ignored
List all ignored fingerprints.
Cleanup
Remove stale entries from the ignore file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more