feat(sudo): print warning if steps were skipped due to missing sudo

This commit is contained in:
Andre Toerien
2025-09-26 15:41:38 +02:00
committed by Gideon
parent a886d20a7b
commit ad9f2c2ccb
6 changed files with 91 additions and 17 deletions

View File

@@ -90,6 +90,15 @@ impl Display for UnsupportedSudo<'_> {
}
}
#[derive(Error, Debug)]
pub struct MissingSudo();
impl Display for MissingSudo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", t!("Could not find sudo"))
}
}
#[derive(Error, Debug)]
pub struct DryRun();