feat: remove stop_all
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::command_builder::CommandBuilder;
|
||||
|
||||
pub fn stop_all() -> Result<()> {
|
||||
let running_containers = CommandBuilder::docker().args("ps -q").exec_get_stdout()?;
|
||||
|
||||
if running_containers.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
CommandBuilder::docker()
|
||||
.args(&format!("stop {running_containers}"))
|
||||
.exec()
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
pub mod completions;
|
||||
pub mod django;
|
||||
pub mod docker;
|
||||
pub mod docker_compose;
|
||||
pub mod link;
|
||||
pub mod postgres;
|
||||
|
||||
Reference in New Issue
Block a user