Loading...
Loading...
Compare original and translation side by side
cartog outline <file>cartog callers <name>cartog callees <name>cartog impact <name> --depth 3cartog refs <name>cartog hierarchy <class>cartog deps <file>cartog outline <file>cartog callers <name>cartog callees <name>cartog impact <name> --depth 3cartog refs <name>cartog hierarchy <class>cartog deps <file>cartog outline <file>cat <file>cartog impact <symbol>cartog index .cartog outline <file>cat <file>cartog impact <symbol>cartog index .bash scripts/ensure_indexed.shbash scripts/ensure_indexed.shcartog index . # Index current directory
cartog index src/ # Index specific directorycartog index . # 索引当前目录
cartog index src/ # 索引指定目录cartog outline src/auth/tokens.pycartog outline src/auth/tokens.pycartog callers validate_tokencartog callers validate_tokencartog callees UserService.authenticatecartog callees UserService.authenticatecartog impact SessionManager --depth 3cartog impact SessionManager --depth 3cartog refs parse_configcartog refs parse_configcartog hierarchy BaseServicecartog hierarchy BaseServicecartog deps src/routes/auth.pycartog deps src/routes/auth.pycartog statscartog stats--jsoncartog --json callers validate_token
cartog --json outline src/auth/tokens.py--jsoncartog --json callers validate_token
cartog --json outline src/auth/tokens.py| I need to... | Use |
|---|---|
| Know what's in a file | |
| Find usages of a function | |
| Understand what a function does at a high level | |
| Check if a change is safe | |
| Find all references (imports, calls, inherits) | |
| Understand class hierarchy | |
| See file dependencies | |
| Read actual implementation logic | |
| Search for string literals / config | |
| 我需要... | 使用命令 |
|---|---|
| 了解文件内容结构 | |
| 查找函数的调用方 | |
| 从宏观层面理解函数功能 | |
| 检查代码变更是否安全 | |
| 查找所有引用(导入、调用、继承) | |
| 理解类继承层级 | |
| 查看文件依赖关系 | |
| 查看实际实现逻辑 | |
| 搜索字符串字面量/配置项 | |
foo.bar()barFoo.barfoo.bar()barFoo.bar