refactor: route sudo usage through Sudo::execute*

This commit is contained in:
Andre Toerien
2025-06-25 15:59:02 +02:00
committed by Gideon
parent 012a6bbde3
commit a95dd1e037
16 changed files with 303 additions and 321 deletions

View File

@@ -232,7 +232,8 @@ fn run() -> Result<()> {
run_shell().context("Failed to execute shell")?;
}
Ok(Key::Char('r' | 'R')) => {
reboot().context("Failed to reboot")?;
println!("{}", t!("Rebooting..."));
reboot(&ctx).context("Failed to reboot")?;
}
Ok(Key::Char('q' | 'Q')) => (),
_ => {