Source Wand is a tool that helps you analyze and mirror source code.
Install source-wand.
sudo snap install source-wand --edge
Generate dependency tree of local directory.
source-wand dependencies local /path/to/directory
Generate dependency tree of git repository.
source-wand dependencies git /url/of/git/repository
You can format the output in json or yaml.
source-wand dependencies --format json local .
source-wand dependencies --format yaml local .
You can flatten the dependency tree to a list of unique dependencies.
source-wand dependencies --flatten local .
You can also combine the flatten and format arguments.
source-wand dependencies --flatten --format json local .