Skip to content

Commit 2cf6552

Browse files
committed
add new command state in execution context
1 parent 5291c9f commit 2cf6552

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/bootstrap/src/utils/execution_context.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ pub struct CommandCache {
2929
cache: Mutex<HashMap<CommandCacheKey, CommandOutput>>,
3030
}
3131

32+
enum CommandState<'a> {
33+
Cached(CommandOutput),
34+
Deferred {
35+
process: Option<Result<Child, std::io::Error>>,
36+
command: &'a mut BootstrapCommand,
37+
stdout: OutputMode,
38+
stderr: OutputMode,
39+
executed_at: &'a Location<'a>,
40+
},
41+
}
42+
3243
impl CommandCache {
3344
pub fn new() -> Self {
3445
Self { cache: Mutex::new(HashMap::new()) }

0 commit comments

Comments
 (0)