mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
parent
c5c2bdbf50
commit
125b68e08a
7 changed files with 207 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ use crate::image::update_image;
|
|||
use crate::network::clear_networks;
|
||||
use crate::php::PhpVersion;
|
||||
use crate::proxy::proxy;
|
||||
use crate::script::run_script;
|
||||
use crate::service::ServiceTrait;
|
||||
use crate::service::{RedisTls, Service};
|
||||
use crate::sources::Sources;
|
||||
|
|
@ -35,6 +36,7 @@ mod mapping;
|
|||
mod network;
|
||||
mod php;
|
||||
mod proxy;
|
||||
mod script;
|
||||
mod service;
|
||||
mod sources;
|
||||
|
||||
|
|
@ -88,7 +90,9 @@ async fn main() -> Result<ExitCode> {
|
|||
|
||||
for cache_dir in config.work_dir.read_dir().into_diagnostic()? {
|
||||
let cache_dir = cache_dir.into_diagnostic()?;
|
||||
if let Some(id) = cache_dir.file_name().to_str() && id.starts_with("haze-") {
|
||||
if let Some(id) = cache_dir.file_name().to_str()
|
||||
&& id.starts_with("haze-")
|
||||
{
|
||||
if !retain.iter().any(|cloud| cloud.id == id) {
|
||||
let path = cache_dir.path();
|
||||
// By default, the worktrees live within the work dir, we do not want to delete it here.
|
||||
|
|
@ -556,6 +560,9 @@ async fn main() -> Result<ExitCode> {
|
|||
)
|
||||
.await?;
|
||||
}
|
||||
HazeArgs::Script { path, mode } => {
|
||||
run_script(path, &config, &docker, mode).await?;
|
||||
}
|
||||
};
|
||||
|
||||
Ok(ExitCode::SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue