Framework Definitions

SolidGroundUX DocumentationSolidGroundUX
NL

Define canonical SolidGroundUX framework globals and defaults

Source: target-root/usr/local/lib/solidgroundux/globals/sgnd-definitions.sh

Define canonical SolidGroundUX framework globals and defaults

Description

Provides the single canonical definition point for stable framework identity, bootstrap defaults, global registries, and ordered core-library declarations.

This library contains definitions only. Derived runtime paths remain the responsibility of sgnd-bootstrap-env.sh so they can be rebased safely.

Framework identity

VariableValueNotes
SGND_PRODUCT"SolidGroundUX"
SGND_VERSION"2.2"
SGND_BUILD"2631102"
SGND_COMPANY"Testadura Consultancy"
SGND_COPYRIGHT"© 2025 - 2026 Testadura Consultancy"
SGND_LICENSE"Testadura Non-Commercial License (TD-NC) v1.1."
SGND_LICENSE_ACCEPTED0
SGND_RELEASE_URL"https://github.com/Testadura-Mark/SolidGroundUX/releases"
SGND_ONLINE_DOC"https://www.solidgroundux.nl"
SGND_DOCUMENTATION"$SGND_ONLINE_DOC"
SGND_APPENDICES"attribution,glossary,integrity,globals,enums,license,changelog,install,canonical"

Framework defaults

VariableValueNotes
SGND_DEFAULT_FRAMEWORK_ROOT"/"
SGND_DEFAULT_LOG_MAX_BYTES$((25 * 1024 * 1024))
SGND_DEFAULT_LOG_KEEP20
SGND_DEFAULT_LOG_COMPRESS1
SGND_DEFAULT_CONSOLE_LOG_LEVEL"silent"
SGND_DEFAULT_FILE_LOG_LEVEL"verbose"
SGND_DEFAULT_UI_STYLE"00-style-default.sh"
SGND_DEFAULT_UI_PALETTE"default-ui-palette.sh"
SGND_DEFAULT_UI_WARNING_DELAY0.5
SGND_DEFAULT_UI_ERROR_DELAY0.5
SGND_DEFAULT_SAY_DATE0
SGND_DEFAULT_SAY_SHOW"label"
SGND_DEFAULT_SAY_COLORIZE"label"
SGND_DEFAULT_SAY_DATE_FORMAT"%Y-%m-%d %H:%M:%S"
SGND_DEFAULT_FRAMEWORK_CFG_BASENAME"sgnd_framework_globals.cfg"
SGND_DEFAULT_CONSOLE_WIDTH80
SGND_DEFAULT_MAX_RENDER_WIDTH140

Framework metadata

Configurable framework globals

SGND_FRAMEWORK_GLOBALS

ScopeVariableDescription
systemSGND_SYSCFG_DIRFramework-wide system configuration directory
systemSGND_DOCS_DIRFramework-wide documentation directory
bothSGND_CONSOLE_LOG_LEVELControls console message visibility. Supported values are silent, quiet, normal, verbose, debug, and trace.
bothSGND_FILE_LOG_LEVELControls file message visibility. Supported values are silent, quiet, normal, verbose, debug, and trace.
systemSGND_LOG_PATHPrimary log file or directory path
bothSGND_ALTLOG_PATHAlternate log path override
systemSGND_LOG_MAX_BYTESMaximum log file size before rotation
systemSGND_LOG_KEEPNumber of rotated log files to retain
systemSGND_LOG_COMPRESSCompress rotated log files
userSGND_STATE_DIRUser-specific persistent state directory
userSGND_USRCFG_DIRUser-specific configuration directory
bothSGND_UI_STYLEDefault UI style file (basename or path)
bothSGND_UI_PALETTEDefault UI palette file (basename or path)
bothSGND_UI_WARNING_DELAYDefault delay in seconds after warning messages; -1 waits for a keypress.
bothSGND_UI_ERROR_DELAYDefault delay in seconds after error messages; -1 waits for a keypress.
userSAY_COLORIZE_DEFAULTDefault colorized console output setting
userSAY_DATE_DEFAULTDefault timestamp visibility
userSAY_SHOW_DEFAULTDefault console message visibility
userSAY_DATE_FORMATDefault date/time format for console output
bothSGND_CONSOLE_WIDTHPrefered standard console width
bothSGND_MAX_RENDER_WIDTHRender width upper limit

Ordered core library list

var: SGND_CORE_LIBS

Purpose

Define the core libraries that sgnd-bootstrap loads in fixed order.

Notes:

  • Ordering is part of the bootstrap contract.
  • Earlier libraries may be required by later ones.

Ordered core libraries

SGND_CORE_LIBS

#Item
1sgnd-args.sh
2sgnd-info.sh
3sgnd-cfg.sh
4sgnd-system.sh
5sgnd-core.sh
6ui.sh
7ui-say.sh
8ui-ask.sh
9ui-glyphs.sh

Runtime globals

SGND_RUNTIME_GLOBALS

ScopeVariableDescription
bothSGND_FRAMEWORK_ROOTRoot path used as the base for framework filesystem locations.
bothSGND_COMMON_LIBDirectory containing common SolidGroundUX library files.
bothSGND_GLOBALS_FOLDERDirectory containing framework and project definition libraries.
bothSGND_COMMON_EXEDirectory containing common SolidGroundUX executable files.
systemSGND_SHARE_DIRShared SolidGroundUX resources such as permission policies and workspace templates.
systemSGND_SYSCFG_DIRDirectory containing system-level SolidGroundUX configuration files.
userSGND_USRCFG_DIRDirectory containing user-level SolidGroundUX configuration files.
userSGND_STATE_DIRDirectory containing user-level SolidGroundUX state files.
systemSGND_STYLE_DIRDirectory containing SolidGroundUX style and palette files.
systemSGND_DOCS_DIRDirectory containing SolidGroundUX documentation files.
systemSGND_LOG_PATHPrimary logfile path for framework or application logging.
userSGND_ALTLOG_PATHFallback user-level logfile path for framework or application logging.
bothSGND_LOG_MAX_BYTESMaximum logfile size before log rotation is attempted.
bothSGND_LOG_KEEPNumber of rotated logfile copies to retain.
bothSGND_LOG_COMPRESSControls whether rotated logfiles are compressed.
bothSGND_CONSOLE_LOG_LEVELControls console message visibility. Supported values are silent, quiet, normal, verbose, debug, and trace.
bothSGND_FILE_LOG_LEVELControls file message visibility. Supported values are silent, quiet, normal, verbose, debug, and trace.
userSGND_USER_HOMEEffective user home directory, honoring SUDO_USER when present.
bothSGND_UI_STYLESelected SolidGroundUX UI style file.
bothSGND_UI_PALETTESelected SolidGroundUX UI palette file.
bothSGND_UI_WARNING_DELAYDelay in seconds after warning messages; -1 waits for a keypress.
bothSGND_UI_ERROR_DELAYDelay in seconds after error messages; -1 waits for a keypress.
bothSGND_CONSOLE_WIDTHPreferred standard width for console rendering primitives.
bothSGND_MAX_RENDER_WIDTHUpper limit applied to console rendering width.
bothSAY_DATE_DEFAULTDefault setting controlling whether say output includes a timestamp.
bothSAY_SHOW_DEFAULTDefault say output prefix mode, such as label, icon, symbol, or combinations.
bothSAY_COLORIZE_DEFAULTDefault say colorization mode, such as none, label, msg, both, all, or date.
bothSAY_DATE_FORMATDate format used when say output includes timestamps.
bothSGND_FRAMEWORK_CFG_BASENAMEBasename of the framework globals configuration file.
userSGND_FRAMEWORK_STATEFILEUser-specific framework runtime state file.

Framework state variables

SGND_FRAMEWORK_STATE

#Item
1SGND_CONSOLE_LOG_LEVEL
2SGND_FILE_LOG_LEVEL
3SGND_UI_STYLE
4SGND_UI_PALETTE
5SAY_DATE_FORMAT