Load a state file into shell variables

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_state_load

Purpose

Load a state file into shell variables.

Description

Reads validated KEY=VALUE entries into the current shell, using SGND_STATE_FILE when --file is omitted.

Arguments

  • --file FILE — Optional state file path.

Side effects

Updates variables in the calling shell.

Returns

0 if the selected file was processed (including a missing file); 1 for an invalid or missing option.

Usage

  sgnd_state_load --file "$SGND_FRAMEWORK_STATE_FILE"