From 2cf6552f5dbbb4c09543a6eabe45b7133a3312fe Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Tue, 24 Jun 2025 20:33:18 +0530 Subject: [PATCH] add new command state in execution context --- src/bootstrap/src/utils/execution_context.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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()) }