mirror of
https://github.com/containers/youki
synced 2024-05-10 01:26:14 +02:00
464344923f
* Name the test tools `contest` Signed-off-by: utam0k <k0ma@utam0k.jp> * Address the feedbacks Signed-off-by: utam0k <k0ma@utam0k.jp> * Fix a build error Signed-off-by: utam0k <k0ma@utam0k.jp> * Fix a workflow Signed-off-by: utam0k <k0ma@utam0k.jp> * Address the feedbacks Signed-off-by: utam0k <k0ma@utam0k.jp> --------- Signed-off-by: utam0k <k0ma@utam0k.jp>
12 lines
338 B
Rust
12 lines
338 B
Rust
use super::get_result_from_output;
|
|
use crate::utils::delete_container;
|
|
use anyhow::Result;
|
|
use std::path::Path;
|
|
|
|
pub fn delete(project_path: &Path, id: &str) -> Result<()> {
|
|
let res = delete_container(id, project_path)
|
|
.expect("failed to execute delete command")
|
|
.wait_with_output();
|
|
get_result_from_output(res)
|
|
}
|