assemble_std/tasks/exec.rs
1//! Contains code for the exec task.
2
3use crate::specs::exec_spec::ExecSpec;
4
5/// The exec task runs a generic program using the built-in command runner of the OS
6#[derive(Debug, Default)]
7pub struct Exec {
8 /// The exec spec of the task
9 pub spec: ExecSpec,
10}
11
12/// Returned when the execution returns a non-zero exit code.
13#[derive(Debug, thiserror::Error)]
14#[error("Execution returned with non-zero exit code.")]
15pub struct ExecError;