|
bashdeps
Exact dependency materialization and manifest maintenance tools
|
Maintains and inspects bashdeps manifests through deliberate commands. More...
Functions | |
| int | __manifest_manager_usage () |
| Writes the complete currently supported manager CLI surface to STDOUT. | |
| int | __manifest_manager_update_usage () |
Writes complete public help for the update subcommand. | |
| int | __manifest_manager_version_output () |
| Writes manager identity and shared release metadata to STDOUT. | |
| int | __manifest_manager_update_has_help (String args) |
| Tests whether update arguments request informational help output. | |
| int | __manifest_manager_update_has_version (String args) |
| Tests whether update arguments request informational version output. | |
| int | __manifest_manager_update_has_stream_hint (String args) |
Detects whether raw update arguments unambiguously request filename -. | |
| int | __manifest_manager_run_update (String args) |
| Executes one complete update invocation including transactional I/O. | |
| int | __manifest_manager_main (String args) |
| Dispatches the public manifest-manager command-line interface. | |
Variables | |
| String | __manifest_manager_version |
| Shared bashdeps project version reported by the manager executable. | |
| String | __manifest_manager_build_date |
| Source revision date injected into generated manager artifacts. | |
| String | __manifest_manager_build_commit |
| Source commit identifier injected into generated manager artifacts. | |
Maintains and inspects bashdeps manifests through deliberate commands.
manifest-manager.bash is a maintainer-side companion to bashdeps.bash. It prepares deliberate source changes to dependency declarations and provides validated read-only inspection without participating in runtime artifact synchronization.
The executable is intentionally separate from the bashdeps synchronization runtime. It may discover GitHub's latest release and calculate proposed trust data for update, while add requires complete declaration data from the caller and remove deletes one exact selected record. bashdeps.bash continues to consume only already-reviewed manifest declarations. The list command reads validated complete identity values without reserializing manifest source.
Maintained source loads manager-only implementation modules from lib/manifest-manager/. Release assembly incorporates that explicit source closure into each generated manager artifact and removes the repository-only import block. No manager module is incorporated into bashdeps.bash.
__manifest_manager_ are not a supported sourceable API. | int __manifest_manager_main | ( | String | args | ) |
Dispatches the public manifest-manager command-line interface.
Top-level help/version forms succeed without manifest input. update, add, and remove delegate to transactional mutation runners, while list delegates to its read-only validated identity runner. Unknown or missing commands fail with status 2 and a concise diagnostic.
| args | Public command arguments excluding the executable name. |
-f - forms and list -f - consume a manifest stream. | 0 | The selected command succeeded. |
| 2 | The public command name or invocation was invalid. |
| int __manifest_manager_run_update | ( | String | args | ) |
Executes one complete update invocation including transactional I/O.
Informational options are handled without staging. For stream mode, complete STDIN capture occurs before full CLI parsing so recognized stream invocations can reproduce original input even when argument validation later fails. File mode captures the selected manifest only after CLI parsing. All network and mutation work operates on that captured original, followed by exactly one stream emission or one staged file publication.
| args | Arguments following the public update subcommand. |
-f - stream mode is selected. | 0 | The operation succeeded or was a successful no-op. |
| 2 | The CLI, manifest, selection, or declaration was invalid. |
| 3 | A required runtime capability was unavailable. |
| 4 | Release discovery or network acquisition failed. |
| 5 | Surgical or preservation safety validation failed. |
| 6 | Input, staging, filesystem, output, or publication failed. |
| int __manifest_manager_update_has_help | ( | String | args | ) |
Tests whether update arguments request informational help output.
This compatibility-local wrapper delegates to the shared command pre-scan so update behavior remains unchanged while other commands use the same informational-option rule.
| args | Arguments following the update subcommand. |
| 0 | At least one -h or --help argument is present. |
| 1 | No update help option is present. |
| int __manifest_manager_update_has_stream_hint | ( | String | args | ) |
Detects whether raw update arguments unambiguously request filename -.
The wrapper retains the existing update runner contract while sharing stream filename recognition with other manager commands.
| args | Arguments following the update subcommand. |
| 0 | A recognizable stream filename request is present. |
| 1 | No recognizable stream filename request is present. |
| int __manifest_manager_update_has_version | ( | String | args | ) |
Tests whether update arguments request informational version output.
This wrapper preserves the established update call structure while delegating detection to the command-agnostic helper introduced for the expanded CLI.
| args | Arguments following the update subcommand. |
| 0 | At least one -V or --version argument is present. |
| 1 | No update version option is present. |
| int __manifest_manager_update_usage | ( | ) |
Writes complete public help for the update subcommand.
Update help documents positional forms, option meanings, omitted-version behavior, transactional stream rollback, and relevant public exit categories.
update help is written. | 0 | Help text was written successfully. |
| int __manifest_manager_usage | ( | ) |
Writes the complete currently supported manager CLI surface to STDOUT.
Top-level help summarizes the implemented update, list, add, and remove commands and directs callers to command-specific help for operation details.
| 0 | Help text was written successfully. |
| int __manifest_manager_version_output | ( | ) |
Writes manager identity and shared release metadata to STDOUT.
Both bashdeps repository executables share one project version, source revision date, and source commit for a release. The first line identifies this product specifically as manifest-manager.bash.
| 0 | Version metadata was written successfully. |
printf status may be propagated if STDOUT cannot be written. | __manifest_manager_build_commit |
Source commit identifier injected into generated manager artifacts.
Bash variable: read-write string
| __manifest_manager_build_date |
Source revision date injected into generated manager artifacts.
Bash variable: read-write string
| __manifest_manager_version |
Shared bashdeps project version reported by the manager executable.
Bash variable: read-write string