Updated
On this page
Monorepo dependency graph export command: JSON, DOT, and text tree formats.
#rlsbl.commands.monorepo.graph
#rlsbl.commands.monorepo.graph
Monorepo dependency graph export command: JSON, DOT, and text tree formats.
#_collect_graph_data
python
def _collect_graph_data(root, projects, graph)Build packages dict and edges list from the workspace graph.
Returns (packages, edges) where packages is a dict keyed by project name and edges is a list of dicts with from/to/type/constraint keys.
#_filter_packages
python
def _filter_packages(graph, packages, edges, root_pkg=None, reverse_pkg=None, depth=None)Apply --root or --reverse filtering to the graph data.
Returns (filtered_packages, filtered_edges).
#_render_json
python
def _render_json(packages, edges)Render the graph as JSON.
#_render_dot
python
def _render_dot(packages, edges)Render the graph as Graphviz DOT.
#_render_text
python
def _render_text(packages, edges)Render the graph as an indented text tree.
#_render_text_subtree
python
def _render_text_subtree(name, packages, lines, indent, visited)Recursively render a package and its deps as indented text.
#_cmd_graph
python
def _cmd_graph(flags)Export the monorepo dependency graph.