IndexedRecordEnvBinding
An indexed env family whose entries are records, one variable per field.
text
CONFIG_COUNT=1 CONFIG_KEY_0=user.name CONFIG_VALUE_0=Kajwith fields: { key: 'CONFIG_KEY_{index}', value: 'CONFIG_VALUE_{index}' } reads as [{ key: 'user.name', value: 'Kaj' }].
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/env-binding.ts - Source link:
src/core/schema/env-binding.ts:71
Signatures
ts
interface IndexedRecordEnvBinding {}Members
Properties
count
Variable holding how many entries the family declares, as a canonical non-negative integer. When it is unset the env source supplies nothing; 0 supplies an explicit empty list.
ts
count: string;fields
One variable template per record field, each with {index} standing for the zero-based index. Every field is required for every declared entry.
ts
fields: Readonly<Record<string, string>>;value
Not available on a record family; see IndexedValueEnvBinding.
ts
value?: undefined;