Persist a configuration variable and assign its current value.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_cfg_set

Purpose

Persist a configuration variable and assign its current value.

Description

Configuration keys are Bash identifiers, not dotted paths.

Arguments

  • $1 — Valid shell-identifier key.
  • $2 — Literal value to store.

Side effects

Writes SGND_CFG_FILE and updates the named variable in the current shell.

Returns

0 after assigning the variable; 1 if the key is invalid. File-write failures are not propagated by this wrapper.

Usage

  sgnd_cfg_set SGND_UI_STYLE dark