Usage Guide¶
This guide explains how to use the cca command-line interface to analyze source code.
๐ง Basic Command¶
cca <source> [options]
Examples¶
Analyze a local directory:
cca ./my_project
Analyze a GitHub repository:
cca https://github.com/pallets/flask
โ๏ธ CLI Options¶
| Option | Description |
|---|---|
<source> |
Path to a local directory or a GitHub repo URL |
--lang |
Comma-separated list of languages to analyze (e.g., python,js) |
--depth |
Hierarchy depth for formatted output |
--max-files |
Maximum number of files to process |
--ignore-tests |
Skip test files like test_*.py or *.spec.js |
--branch |
Git branch to use (only applies when source is a GitHub repository) |
--copy |
Copy the formatted output to clipboard |
--help |
Show help message |
๐ง Language Support¶
Currently supported languages:
- Python (
.py) - JavaScript (
.js)
๐งช Tips¶
- Combine
--ignore-tests trueand--ignore <some, files, to, ignore>customize the ignoring. - Use
--no-coopyto not automatically copy the response from analyzer
๐ Output Example¶
project/
โโโ module_a/
โ โโโ file1.py (2 classes, 3 functions)
โ โโโ file2.py (1 function)
โโโ module_b/
โโโ file3.js (1 class, 2 exported functions)
For more details on internals, see Architecture.