Skip to main content

load_profile_definitions

Function load_profile_definitions 

Source
pub fn load_profile_definitions(
    config: &Config,
) -> Result<Vec<ProfileDefinition>>
Expand description

Load all profile scripts from config and extract their definitions.

For each [profiles.script.<name>] entry, reads the script file, creates a temporary Lua VM to extract the profile table metadata, and converts the argument declarations.

Called once at startup.