diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 00:17:34 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 00:18:14 +0300 |
| commit | 8d4cc05be0c696db2aabca7e9995e59019a01469 (patch) | |
| tree | ee9caf14c9b72c21574d599ff119b0f4533f3439 /src/app/mod.rs | |
| parent | 1342a76e60ff46c45dcceee689f6eed180eb0650 (diff) | |
feat: add homebrew update handling
refs #127
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index bc732f57..d9f666ed 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -291,6 +291,7 @@ impl App { .filter(|notes| notes.preview) .map(|notes| notes.version.clone()); let latest_release_notes_available = latest_release_notes.is_some(); + let update_install_command = crate::update::update_install_command().to_string(); let mode = if config.should_show_onboarding() { state::Mode::Onboarding @@ -355,6 +356,7 @@ impl App { selection: None, context_menu: None, update_available, + update_install_command, latest_release_notes_available, update_dismissed: false, config_diagnostic, @@ -1883,6 +1885,7 @@ mod tests { app.event_tx .try_send(AppEvent::UpdateReady { version: format!("9.9.{i}"), + install_command: "herdr update".into(), }) .unwrap(); } |
