Generated by DALL-E
tracemod is a self-contained binary which lets you trace dependencies from Go projects visually.
Generate and display an SVG rendering of all the direct and transitive
dependencies matching github.com/spf13/cobra
.
tracemod github.com/spf13/cobra
- From GitHub:
go install github.com/aseure/tracemod@latest
Use the -m
/--max-traces
option to limit the maximum number of dependency
paths to generate. This is useful when looking for a dependency included in
many places, such as Protobuf.
By default, the direction of the graph is automatically computed to better
represent the dependency tree. However, it is possible to force the rendering
by using the -d
/--direction
option to select among the different display
styles:
TB
for ⬇️ top-to-bottomBT
for ⬆️ bottom-to-topLR
for ➡️ left-to-rightRL
for ⬅️ right-to-left
The search query is by default interpreted as a regular expression. For
convenience, this can be changed by using the -F
/--fixed-strings
option
flag to instead look for exact matches.
When the dependency tree is too big, a timeout can be specified to limit the
execution time of the program, using the -t
/--timeout
option. Whenever the
timeout is hit, the resulting dependency graph is still displayed, but keep in
mind that it will only be partial.