Manage documentation bundles through the SolidGroundUX interface.
Source: target-root/usr/local/libexec/solidgroundux/manage-bundles.sh
Manage documentation bundles through the SolidGroundUX interface.
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_bundle_python | Call the existing bundle Python CLI without changing its API. | $@ - Command and arguments from the original doc-bundles.sh implementation. | Prints successful backend output to stdout; errors to stderr via sayfail. |
_bundle_markdown_python | Invoke the existing Markdown generator and report JSON. | - $1 — Bundle identifier. | JSON summary from the Markdown generator. |
_bundle_prompt | Read a value using the framework's ask facility. | - $1 label, $2 default, $3 output variable, $4 optional validator, $5 width. | — |
_bundle_validate_nonempty | Reject empty required values. | — | — |
_bundle_validate_directory | Validate an existing source directory. | — | — |
_bundle_validate_output | Require an absolute output directory. | — | — |
_bundle_validate_overwrite | Accept supported overwrite policies. | — | — |
_bundle_validate_position | Require a positive one-based position. | — | — |
_bundle_require_active | Reject an operation without a selected bundle. | — | — |
_bundle_render_table | Render a framework datatable with a named section. | - $1 section title, $2 schema, $3 table array name. | — |
_bundle_read_bundle_table | Populate a datatable from list-json. | — | (globals) |
_bundle_read_sources_table | Populate a datatable from a bundle's products. | — | (globals) |
_bundle_choose_row | Resolve a numbered selection from a provided ID array. | - $1 output variable, $2 nameref array variable. | — |
_bundle_continue | Print a spacer and wait for Enter before returning to the menu. | — | — |
_bundle_list | List saved documentation bundles as a datatable. | — | — |
_bundle_select | Select a bundle by its displayed table number. | — | — |
_bundle_create | Create a saved bundle through the existing CLI. | — | — |
_bundle_configure | Modify the bundle configuration using original CLI fields. | — | — |
_bundle_validate_doc_role | Accept the three bundle document placement roles. | — | — |
_bundle_validate_doc_action | Accept document-management commands. | — | — |
_bundle_validate_doc_role_or_page | Accept section-level document placement. | — | — |
_bundle_validate_doc_path | Check documentation source file extensions. | — | — |
_bundle_manage_documents | Show explicit document selections and allow manual or automatic modes. | — | — |
_bundle_validate | Validate the active bundle. | — | — |
_bundle_delete | Confirm and delete a saved bundle. | — | — |
_bundle_generate | Validate bundle and prepare the Markdown WWW root. | — | — |
_bundle_generate_selected | Show the saved bundles, require an explicit selection, and generate only | — | — |
_bundle_sources_table | Display the ordered product/source datatable. | — | — |
_bundle_source_add | Add a source repository to the active bundle. | — | — |
_bundle_source_edit | Edit the chapter title and source directory. | — | — |
_bundle_source_move | Reorder a source repository chapter. | — | — |
_bundle_source_remove | Remove a source repository from the bundle. | — | — |
_bundle_print_active_summary | Show active bundle below the title bar. | — | — |
_bundle_show_menu | Keep the framework menu model, paging, item numbering and dispatch intact. | — | — |
_bundle_register_main_menu | Register bundle actions through sgnd-menu. | — | — |
_bundle_register_sources_menu | Register the source-management submenu. | — | — |
_bundle_manage_sources | Show nested source menu with per-action continue. | — | — |
Description
MCM frontend for sgnd_doc_bundles.py and sgnd_doc_markdown.py. The Python programs remain responsible for persistence, validation, and Markdown preparation. Menus, tables, prompts, messages and lifecycle use the framework's public APIs.
Usage
Run the executable from its shell command (or installed wrapper):
sgnd-manage-bundles
sgnd-manage-bundles --generate
- With no mode: open the interactive documentation-bundle manager.
- With
--generate: choose a saved bundle and generate its Markdown documentation. - Select Q at the bundle selector to return without generating anything.
Framework integration
Optional libraries are loaded by sgnd_exe_start/sgnd_bootstrap in this order. sgnd-menu uses the datatable API for its menu model.
