Manage the SolidGroundUX framework and setup and product lifecycle
Source: target-root/usr/local/libexec/solidgroundux/console-modules/40-solidgroundux.sh
Manage the SolidGroundUX framework and setup and product lifecycle
Public functions
- Configure validated framework settings externally
- Display state in the Framework workflow.
- Edit state in the Framework workflow.
- Save state in the Framework workflow.
- Invoke the Framework state manager’s reload operation.
- Validate the management module and record its status for the console.
- Inspect and optionally apply the Framework-owned policy
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_setup | Start the self-sufficient setup tool for installation, update, rollback, | — | — |
_framework_smoketest | Launch the Framework-owned smoke-test suite from the console. | — | — |
_framework_show_environment | Display the active Framework runtime environment and configuration. | — | — |
_framework_show_about | Print the installed Framework version/build, company, copyright, license | — | — |
_framework_config_view_file | Open a framework configuration file read-only. | - $1: Title of the configuration display. | — |
_framework_config_view_system | View the system framework configuration. | — | — |
_framework_config_view_user | View the user framework configuration. | — | — |
_framework_config_edit_system | Edit the system configuration externally. | — | — |
_framework_config_edit_user | Edit the user configuration externally. | — | — |
_framework_log_view | Display Framework log entries through the logging role manager. | — | — |
_framework_log_follow | Follow Framework log entries through the logging role manager. | — | — |
_framework_log_show_errors | Show Framework error log entries through the logging role manager. | — | — |
_framework_log_rotate | Trigger Framework log rotation through the logging role manager. | — | — |
Description
Contains SolidGroundUX framework information, access to the standalone setup tool, configuration, state, logging, and diagnostics.
Module validation contract
Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable
Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.
Console registration
Provides operational management of the SolidGroundUX installation itself, including setup and product lifecycle, framework configuration and state, logging, and diagnostics.
SolidGroundUX
! About SolidGroundUX
Show SolidGroundUX information. Handler: _framework_show_about
! Setup
Open the interactive standalone SolidGroundUX setup tool. Check, download, update, install, roll back, remove, and manage project releases there. Handler: _setup Script: /var/lib/solidgroundux/sgnd-setup.sh
Framework Configuration
! Show effective configuration
Show the resolved SolidGroundUX framework environment and effective settings. Handler: _framework_show_environment
! View system configuration
View the system-wide framework configuration file. Handler: _framework_config_view_system
! Configure framework settings
Interactively configure sgnd_framework_globals.cfg with validated values. Handler: framework_configure_file
! Edit system configuration file
Edit the raw system-wide framework configuration file. Handler: _framework_config_edit_system
! View user configuration
View the user-specific framework configuration file. Handler: _framework_config_view_user
! Edit user configuration
Edit the user-specific framework configuration file. Handler: _framework_config_edit_user
Framework State
! Show state
Display current transferable framework-state values. Handler: framework_state_show
! Edit state
Edit and save transferable framework-state values. Handler: framework_state_edit
! Save state
Save current transferable values to the state file. Handler: framework_state_save
! Reload state
Reload transferable values from the state file. Handler: framework_state_reload
Framework Logging
! View current logfile
Open the active framework logfile at its most recent entries. Handler: _framework_log_view
! Follow current logfile
Follow new entries written to the active framework logfile. Handler: _framework_log_follow
! Show recent errors
Show the most recent error, failure, and fatal log entries. Handler: _framework_log_show_errors
! Rotate current logfile
Rotate the active framework logfile using the configured retention settings. Handler: _framework_log_rotate
Framework Diagnostics
! Framework smoke test
Run the complete SolidGroundUX framework smoke test. Handler: _framework_smoketest Command: sgnd-framework-smoketest
