fn: sgnd_state_load_keys
Purpose
Restore selected persisted keys into shell variables.
Description
Takes key names directly or from a named array. Absent keys leave their variables unchanged; invalid names are skipped.
Arguments
--file FILE— Optional state file.--array ARRAY_NAME— Name of an indexed array containing keys.KEY...— Additional state keys.
Side effects
Assigns values to shell variables for keys found in the file.
Returns
0 after processing valid names; 1 on invalid file or array.
Usage
sgnd_state_load_keys --file "$SGND_FRAMEWORK_STATE_FILE" --array SGND_FRAMEWORK_STATE
