feat(sudo): print warning if steps were skipped due to missing sudo
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user