Skip to main content

execute_spec

Function execute_spec 

Source
pub async fn execute_spec(
    spec: &ActionSpec,
) -> Result<ExecutionOutput, ExecutorError>
Expand description

Execute an ActionSpec and return the output.

For Command mechanisms, the process is spawned and its stdout/stderr are captured. For file mechanisms, the operation is performed directly on the filesystem and an empty stdout is returned.