1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00
This commit is contained in:
Robin Appelman 2021-08-16 17:10:18 +02:00
commit 6f3320df05

View file

@ -402,12 +402,13 @@ impl Cloud {
}
}
pub async fn occ<S: Into<String>>(
pub async fn occ<'a, S: Into<String> + From<&'a str>>(
&self,
docker: &Docker,
cmd: Vec<S>,
mut cmd: Vec<S>,
output: Option<&mut Vec<u8>>,
) -> Result<ExitCode> {
cmd.insert(0, "occ".into());
self.exec_with_output(docker, cmd, output).await
}