Delphi-RAG-Lint

drag-lint help

document-all

Since: 0.93.0-alpha

Documents every public declaration in every indexed unit, with no project scope.

Read this when you want to sweep DocInsight comments across everything in the index rather than one project at a time. document-all documents every public declaration in every indexed unit; the default is facts-only. Without --apply it is a dry run (it prints the edits and writes nothing); with --apply it writes the comments, with a .bak unless --no-backup. Exit 0 on success including a dry run, 1 when some edits were refused because the index was stale (reindex, then re-run), 2 on a usage or database error.

How to run it

Full flag list: document-all in the CLI reference.

Flags

FlagArgumentMeaningDefault
--stubs
--apply
--json
--no-backup
--include-accessors
--migrate-pure
--dbPATH

Where to click

  • RAD Studio main menu: drag-lint > Generate & Export > Auto-Document Every Indexed Unit...
    1. Choose drag-lint > Generate & Export > Auto-Document Every Indexed Unit...
    2. Follow the dialog
    3. Every public declaration in every indexed unit is documented (facts-only by default)

Details

Documents every public declaration in every indexed unit, with no project scope. Reach for it to sweep DocInsight comments across the whole index at once, rather than one project at a time.

Running it from the CLI

drag-lint document-all [--stubs|--apply|--json|--no-backup|--include-accessors|--migrate-pure] [--db PATH]

Like the other batch document modes, the default is facts-only: an empty tag is never written, <param> never gets a skeleton, and <summary> appears only when harvested from a nearby // comment; add --stubs to keep a fresh comment that has no facts block. Trivial Get*/Set* property accessors are skipped by default; add --include-accessors to document them too. The usage line lists --apply as a flag; whether omitting it produces a dry run is not documented in the help text for this verb.

document-all covers every indexed unit with no project scope. This is different from drag-lint document --project <p.dproj>, which is scoped to the compile closure restricted to that project's own roots (declared in _D-RAG\drag-lint-project.json).

What it needs

The --db flag is optional -- drag-lint auto-resolves the index when omitted. An index must still exist.

Example

Illustrative:

drag-lint document-all --apply --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite

This would add facts-only DocInsight comments to every public declaration in every unit that this index covers, regardless of which project owns it.


All features | CLI reference | IDE menus