(sigil cli boot)
cli/boot.sgl — Minimal bootstrap CLI
A trimmed-down (sigil cli) used ONLY by the Makefile bootstrap. Defines the same library name as cli.sgl but with a much smaller import surface, supporting only the build + bundle subcommands (plus --version and --help). Used to compile the full release sigil binary, which then becomes the user-facing tool.
Anything beyond build / bundle error-exits with a message pointing the user at the full release binary.
The build/bundle implementation lives in (sigil cli build-cmds) so cli.sgl and this file share the same code path.
Exports
show-helpprocedureDisplay minimal usage message
make-boot-cmdprocedureConstruct the bootstrap-mode top-level command. Parses build / bundle / deps subcommands and dispatches to their handlers. Other subcommands fall through to the unknown-command path in main.
process-global-optionsprocedureProcess global -L args (already handled by sigil-run main.c, but the CLI processes them again so that both run paths are consistent).
unsupported-commandprocedurePrint the "this command isn't in the bootstrap binary" error and bail. Centralized so the message stays consistent for every excluded subcommand.
known-non-boot-commandsvariableRecognized non-bootstrap subcommands — listed only so the unknown- command branch can produce a hint instead of "command not found" for the common ones.
mainvariable(No description)
current-project-rootvariable(No description)
current-source-pathsvariable(No description)
find-module-sourcevariable(No description)
module-needs-compile?variable(No description)
auto-compile-module!variable(No description)