Skip to main content

Module exec

Module exec 

Source
Expand description

Subprocess execution.

{"cmd":"exec","program":"git","args":["status"],...} runs a program to completion and returns its exit code plus base64 stdout/stderr. This is the bridge that lets any client (emacs, a plugin, another language) drive the toolchain through the host instead of shelling out itself. The same core (run_raw) backs the background crate::jobs runner.

Structs§

ExecResult
Captured result of running a command to completion.

Functions§

run
Run the exec request and return the reply object (base64 stdout/stderr).
run_raw
Run a command to completion, returning raw captured output. Recognised fields: program (required), args, cwd, env (string→string, merged onto the inherited environment), stdin (UTF-8 fed to the child).