Skip to main content

Module runner

Module runner 

Source
Expand description

The process seam: Cmd is a command with its program looked up in PATH and a text form; a CommandRunner starts it. Production uses TokioRunner; tests inject a recording runner, so no test spawns gcloud or cargo.

Structs§

Cmd
A command: the fields the deploy commands use.
CmdOutput
A finished child’s exit and captured output (including the stderr kept for a failed exit).
TokioRunner
Spawns real processes with tokio.

Enums§

Exit
How a child process ended.

Traits§

CommandRunner
Starts processes. Err is the text of the error from starting the child (the lookup failure for a failed lookup, else the spawn failure); a started child that fails is an Ok Exit.