rename some event attributes

This commit is contained in:
Ian Letourneau
2025-07-31 09:24:05 -04:00
parent 507556969a
commit 6b36b1c7e9
4 changed files with 16 additions and 13 deletions

View File

@@ -47,14 +47,17 @@ async fn handle_events() {
match event {
HarmonyEvent::HarmonyStarted => {}
HarmonyEvent::PrepareTopologyStarted { name } => {
HarmonyEvent::PrepareTopologyStarted { topology: name } => {
let section = progress::new_section(format!(
"{} Preparing environment: {name}...",
crate::theme::EMOJI_TOPOLOGY,
));
(*sections).insert(name, section);
}
HarmonyEvent::TopologyPrepared { name, outcome } => {
HarmonyEvent::TopologyPrepared {
topology: name,
outcome,
} => {
let section = (*sections).get(&name).unwrap();
let progress = progress::add_spinner(section, "".into());
@@ -74,7 +77,7 @@ async fn handle_events() {
}
}
HarmonyEvent::InterpretExecutionStarted {
name,
interpret: name,
topology,
message,
} => {
@@ -85,7 +88,7 @@ async fn handle_events() {
}
HarmonyEvent::InterpretExecutionFinished {
topology,
name,
interpret: name,
outcome,
} => {
let section = (*sections).get(&topology).unwrap();