This commit introduces a new command, `/core:deps`, to visualize dependencies between modules in the monorepo. The command parses a `repos.yaml` file to build a dependency graph and supports the following functionalities: - Displaying a full dependency tree for all modules. - Displaying a dependency tree for a single module. - Displaying reverse dependencies for a single module using the `--reverse` flag. - Detecting and reporting circular dependencies. The implementation consists of a Python script that handles the core logic and a command definition file that connects the command to the script. A comprehensive test suite is included to ensure the correctness of the implementation. Co-authored-by: Claude <noreply@anthropic.com>
448 B
448 B
| name | description | hooks | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| deps | Show module dependencies |
|
/core:deps
Visualize dependencies between modules in the monorepo.
Usage
/core:deps - Show the full dependency tree
/core:deps <module> - Show dependencies for a single module
/core:deps --reverse <module> - Show what depends on a module