1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

default to max supported php version

This commit is contained in:
Robin Appelman 2025-08-26 13:32:18 +02:00
commit 86a68339b4
5 changed files with 122 additions and 49 deletions

View file

@ -57,7 +57,7 @@ async fn main() -> Result<ExitCode> {
.wrap_err("Failed to connect to docker")?;
let config = HazeConfig::load().wrap_err("Failed to load config")?;
let args = HazeArgs::parse(&config.preset, std::env::args())?;
let args = HazeArgs::parse(&config, std::env::args())?;
match args {
HazeArgs::Clean => {
@ -265,7 +265,7 @@ async fn main() -> Result<ExitCode> {
cloud.destroy(&docker).await?;
}
HazeArgs::Fmt { path } => {
let cloud = Cloud::create(&docker, CloudOptions::default(), &config).await?;
let cloud = Cloud::create(&docker, CloudOptions::new(&config), &config).await?;
let mut out_buffer = Vec::<u8>::with_capacity(1024);
println!("Waiting for servers to start");
cloud.wait_for_start(&docker).await?;