Skip to main content

Module cli

Module cli 

Source

Structs§

AnalysisOutput
Result of run_analysis.
CheckThresholds
Thresholds for the check subcommand.
CliOverrides
Optional CLI overrides applied on top of file-based config.

Enums§

CliError
Errors returned by CLI command functions.
Command
CLI subcommands shared between cargo-dupes and code-dupes.
OutputFormat
Output format for CLI reports.

Functions§

apply_overrides
Apply CLI overrides to a loaded Config.
cmd_check
Check thresholds; returns Err(CliError::CheckFailed) if any are exceeded.
cmd_cleanup
Remove stale entries from the ignore file.
cmd_ignore
Add a fingerprint to the ignore list.
cmd_ignored
List all ignored fingerprints.
cmd_report
Show a full duplication report (stats + groups).
cmd_stats
Show duplication statistics only.
create_reporter
Create a reporter for the given output format.
run_analysis
Scan files, run the analysis pipeline, and return the output.

Type Aliases§

CliResult
Result type for CLI operations.