Behaviour for CLI commands.
Every command knows how to build its argument list and how to
parse its output. Synchronous execution routes through the configured
CodexWrapper.Runner; the default runner closes stdin (Codex CLI hangs
if stdin is inherited from the parent).
Summary
Functions
Run a command synchronously through the configured CodexWrapper.Runner.
Types
@type args() :: [String.t()]
Callbacks
Functions
@spec run(module(), struct(), CodexWrapper.Config.t()) :: {:ok, term()} | {:error, term()}
Run a command synchronously through the configured CodexWrapper.Runner.
Returns the parsed output on success. On timeout the default runner
abandons the OS process group; CodexWrapper.Runner.Forcola kills it.