From 4086fc1f83673554f9b9695e853c44dd895add23 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 11 Jan 2022 00:10:56 -0500 Subject: highlight the specific pipeline that is currently running --- src/runner/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runner/mod.rs') diff --git a/src/runner/mod.rs b/src/runner/mod.rs index 86fb1b4..3e32498 100644 --- a/src/runner/mod.rs +++ b/src/runner/mod.rs @@ -9,6 +9,7 @@ const PID0: nix::unistd::Pid = nix::unistd::Pid::from_raw(0); #[derive(Debug, serde::Serialize, serde::Deserialize)] pub enum Event { + RunPipeline(usize, (usize, usize)), Suspend(usize), Exit(Env), } @@ -195,6 +196,8 @@ async fn run_pipeline( env: &mut Env, shell_write: &async_std::fs::File, ) -> anyhow::Result<()> { + write_event(&shell_write, Event::RunPipeline(env.idx(), pipeline.span())) + .await?; // Safety: pipelines are run serially, so only one copy of these will ever // exist at once. note that reusing a single copy of these at the top // level would not be safe, because in the case of a command line like -- cgit v1.2.3-54-g00ecf