pub fn maybe_dispatch() -> Option<i32>Expand description
Carried-coreutils dispatch (agent-bridle #206): a newt binary calls this at
the top of main to become dispatch-capable, so the brush engine’s carried
ls/cat shims re-exec against the newt binary itself.
Run the bundled-command fast path if the process was invoked for it.
If invoked as <self> --invoke-bundled <NAME> [ARGS…], runs the registered
function and returns Some(code); the caller exits with it. Returns None
for a normal invocation, so the embedder’s usual startup proceeds. If the
registry was never installed (a non-dispatch-capable build), we install the
default providers on demand so a dispatch-capable main need only call this.