Skip to content

GenerateOptions

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/engine/file-manager / GenerateOptions

Defined in: generator/engine/file-manager.ts:49

Options accepted by generateFromTemplate and generateContents.

All fields are optional. The ones related to filtering (excludedFiles, excludedOperations) and iteration context (currentProperty, currentAdditionalApi) are set internally when the generator expands a template group; callers typically only set force, lockFiles, templateData, verbose and the bounded-context/module identifiers.

optional boundedContextName?: string

Defined in: generator/engine/file-manager.ts:51

Bounded context name used for filename substitution (e.g. __bounded_context_name__).


optional currentAdditionalApi?: AdditionalApi

Defined in: generator/engine/file-manager.ts:53

Currently iterated additional API when expanding additional-@api templates.


optional currentProperty?: Property

Defined in: generator/engine/file-manager.ts:55

Currently iterated property when expanding per-property templates.


optional excludedFiles?: string[]

Defined in: generator/engine/file-manager.ts:57

File path globs excluded from generation for this module.


optional excludedOperations?: string[]

Defined in: generator/engine/file-manager.ts:59

CRUD operations excluded for this module (e.g. delete, update).


optional force?: boolean

Defined in: generator/engine/file-manager.ts:61

If true, overwrite existing files respecting the lockfile integrity check.


optional lockFiles?: LockFile[]

Defined in: generator/engine/file-manager.ts:63

Existing lockfile entries consulted when a file already exists on disk.


optional moduleName?: string

Defined in: generator/engine/file-manager.ts:65

Module name used for filename substitution (__module_name__).


optional moduleNames?: string

Defined in: generator/engine/file-manager.ts:67

Plural form of the module name (__module_names__).


optional templateData?: TemplateData

Defined in: generator/engine/file-manager.ts:69

Data passed into the Eta renderer as it.


optional useTemplateEngine?: boolean

Defined in: generator/engine/file-manager.ts:71

If false, skip Eta rendering and copy the template contents verbatim.


optional verbose?: boolean

Defined in: generator/engine/file-manager.ts:73

If true, log per-file and per-region detail under INFO/OVERWRITE/REGION tags.