Expand description
§CLI Module
This module defines the command-line interface for RepoLens using clap.
§Commands
| Command | Description |
|---|---|
init | Initialize a new configuration file |
plan | Analyze repository and show planned actions |
apply | Apply planned changes to the repository |
report | Generate an audit report |
compare | Compare two audit reports |
schema | Display JSON Schema for report output |
install-hooks | Install or remove Git hooks |
§Submodules
commands- Command implementationsexit_codes- Standardized exit codesoutput- Report output formatters (JSON, Markdown, SARIF, Terminal)
§Global Options
All commands support these global options:
-v, --verbose- Increase verbosity level (use multiple times: -v, -vv, -vvv)-c, --config <FILE>- Path to configuration file-C, --directory <DIR>- Working directory (defaults to current directory)
§Examples
# Initialize configuration
repolens init --preset opensource
# Run audit and show plan
repolens plan
# Generate JSON report
repolens report --format json -o report.json
# Apply fixes
repolens apply --yesModules§
- commands
- CLI commands module
- exit_
codes - Exit codes for the CLI
- output
- Output formatting module for CLI
Structs§
- Cli
- RepoLens - Audit and prepare repositories for open source or enterprise standards