Skip to main content

MustRegisterSubSection

No overview available.

def MustRegisterSubSection(
key: config.SectionKey,
cfg: config.Config
) - > config.Section

Registers a new configuration section with the provided key and configuration. This function is used to define and initialize a specific subsection within the application's configuration structure.

Parameters

NameTypeDescription
keyconfig.SectionKeyThe unique identifier for the configuration section to be registered.
cfgconfig.ConfigThe configuration object containing settings and values for the new section.

Returns

TypeDescription
config.SectionThe newly registered configuration section.