Delphi-RAG-Lint

drag-lint help

Export Graph (DOT)

Since: 0.6.0-alpha

Uses graph to export the indexed call/reference graph in DOT format, either whole or rooted at a name substring.

Read this when you want a picture of the indexed call/reference graph in Graphviz or Mermaid. drag-lint graph writes DOT (or Mermaid) for the whole index or rooted at a name substring; also on the IDE Generate & Export menu.

How to run it

Full flag list: graph in the CLI reference.

Flags

FlagArgumentMeaningDefault
--db<file.sqlite>
--format
--name<root-substr>
--output<file>

Where to click

  • RAD Studio main menu: drag-lint > Generate & Export > Export Graph (DOT)...

Needs: index

Details

Uses graph to export the indexed call/reference graph in DOT format, either whole or rooted at a name substring. Reach for it to visualize dependency structure with Graphviz.

Running it from the CLI

drag-lint graph --db <file.sqlite> [--format dot|mermaid] [--name <root-substr>] [--output <file>]

--format selects dot or mermaid; --name roots the graph at a substring match; --output writes to a file instead of stdout.

Reaching it in the IDE

drag-lint > Generate & Export > Export Graph (DOT)...

What it needs

An index IS required. The project's DB lives at <project folder>\_D-RAG\<project file>.sqlite; run drag-lint resolve-dbs --project <X.dproj> if unsure.

Example

Illustrative only:

drag-lint graph --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite --format dot --name TCustomerOrder --output order.dot

This would write a DOT graph rooted around TCustomerOrder to order.dot.


All features | CLI reference | IDE menus