diff --git a/src/bootstrap/src/utils/execution_context.rs b/src/bootstrap/src/utils/execution_context.rs index 3630ef4dd979..569fc816b939 100644 --- a/src/bootstrap/src/utils/execution_context.rs +++ b/src/bootstrap/src/utils/execution_context.rs @@ -29,6 +29,17 @@ pub struct CommandCache { cache: Mutex>, } +enum CommandState<'a> { + Cached(CommandOutput), + Deferred { + process: Option>, + command: &'a mut BootstrapCommand, + stdout: OutputMode, + stderr: OutputMode, + executed_at: &'a Location<'a>, + }, +} + impl CommandCache { pub fn new() -> Self { Self { cache: Mutex::new(HashMap::new()) }