Skip to main content

Module cli_binary

Module cli_binary 

Source
Expand description

Resolve the stackless CLI binary used to spawn the operator daemon.

Third-party SDK consumers must not be spawned as the daemon: only the installed CLI understands daemon run. Resolution is pure-testable via resolve_cli_from because edition 2024 + unsafe_code = "forbid" blocks in-process set_var.

Enums§

ResolveError
ResolveSource
How the daemon executable was resolved.

Functions§

is_cli_process
Whether mark_cli_process has been called in this process.
mark_cli_process
Mark this process as the stackless CLI entrypoint (stackless::cli::run).
resolve_cli
Resolve the CLI binary from the real process environment.
resolve_cli_from
Pure resolver for tests and resolve_cli.
should_replace_daemon
Whether a version mismatch should drain and respawn the daemon.