fn: sgnd_state_set
Purpose
Persist a state key and update its shell variable.
Arguments
--file FILE— Optional state file path.KEY— Valid shell identifier.VALUE— String to persist.
Side effects
Modifies the state file and variable KEY in the calling shell.
Returns
0 on successful update; 1 for invalid input or file failure.
Usage
sgnd_state_set --file "$SGND_FRAMEWORK_STATE_FILE" SGND_UI_STYLE "$SGND_UI_STYLE"
