Overview
vg path finds the shortest path between two nodes in the call graph, showing the dependency chain between them.
Usage
vg path <a> <b>
| Flag | Description |
|---|---|
<a> | Source node |
<b> | Target node |
--pick-a <n> | Pick the nth candidate for A |
--pick-b <n> | Pick the nth candidate for B |
Examples
vg path LoginController UserRepository
vg path src/api/routes.ts src/db/client.ts