mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
use php7.4 for fmt
This commit is contained in:
parent
0dbe4739ae
commit
38e919af65
2 changed files with 11 additions and 1 deletions
|
|
@ -72,6 +72,10 @@ impl CloudOptions {
|
|||
app_packages: app_package,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn with_php(self, php: PhpVersion) -> Self {
|
||||
CloudOptions { php, ..self }
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use crate::cloud::{Cloud, CloudOptions};
|
|||
use crate::config::HazeConfig;
|
||||
use crate::exec::container_logs;
|
||||
use crate::network::clear_networks;
|
||||
use crate::php::PhpVersion;
|
||||
use crate::service::Service;
|
||||
use crate::service::ServiceTrait;
|
||||
use bollard::Docker;
|
||||
|
|
@ -276,7 +277,12 @@ async fn main() -> Result<()> {
|
|||
cloud.destroy(&mut docker).await?;
|
||||
}
|
||||
HazeArgs::Fmt { path } => {
|
||||
let cloud = Cloud::create(&mut docker, CloudOptions::default(), &config).await?;
|
||||
let cloud = Cloud::create(
|
||||
&mut docker,
|
||||
CloudOptions::default().with_php(PhpVersion::Php74),
|
||||
&config,
|
||||
)
|
||||
.await?;
|
||||
let mut out_buffer = Vec::<u8>::with_capacity(1024);
|
||||
println!("Waiting for servers to start");
|
||||
cloud.wait_for_start(&mut docker).await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue