Skip to content

Latest commit

ย 

History

History
47 lines (32 loc) ยท 2.48 KB

File metadata and controls

47 lines (32 loc) ยท 2.48 KB

๐Ÿงพ materialize` โ€” build generated files from records (not yet implemented)

Source Code

Top-level command with subcommands for materializing views and README files.

๐Ÿ”ธ materialize collection`

ingitdb materialize collection [--collection=ID] [--path=PATH]

Renders the README.md file for a collection. If the generated content differs from the existing file, it is automatically updated. See Collection README Builder for details on what is included in the generated README.

Flag Description
--collection=ID Collection ID to materialize (e.g. countries). If omitted, READMEs for all collections are processed.
--path=PATH Path to the database directory. Defaults to the current working directory.

๐Ÿ”ธ materialize views`

ingitdb materialize views [--path=PATH] [--views=VIEW1,VIEW2,...] [--records-delimiter=N]
Flag Description
--path=PATH Path to the database directory. Defaults to the current working directory.
--views=LIST Comma-separated list of view names to materialize. Without this flag, all views are materialized.
--records-delimiter=N Override the #- delimiter behaviour for INGR output. 1 = enabled, -1 = disabled, 0 or omitted = use view/project default (app default is 1).

Output is written into the $views/ directory defined in the collection's view definition.

Examples:

# ๐Ÿงพ Rebuild all views
ingitdb materialize

# ๐Ÿ” Rebuild specific views only
ingitdb materialize --views=by_status,by_assignee

# ๐Ÿ” Rebuild views for a database at a specific path
ingitdb materialize --path=/var/db/myapp