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

version and help

This commit is contained in:
Robin Appelman 2025-09-01 16:55:58 +02:00
commit e189b2e4f2
5 changed files with 188 additions and 86 deletions

View file

@ -6,6 +6,7 @@ use crate::config::HazeConfig;
use crate::database::DatabaseFamily;
use crate::exec::container_logs;
use crate::git::checkout_all;
use crate::help::help;
use crate::image::update_image;
use crate::network::clear_networks;
use crate::php::PhpVersion;
@ -27,6 +28,7 @@ mod config;
mod database;
mod exec;
mod git;
mod help;
mod image;
mod mapping;
mod network;
@ -443,6 +445,13 @@ async fn main() -> Result<ExitCode> {
update_image(&docker, php.image()).await?;
}
}
HazeArgs::Version => {
const VERSION: &str = env!("CARGO_PKG_VERSION");
println!("haze v{}", VERSION);
}
HazeArgs::Help => {
help();
}
};
Ok(ExitCode::SUCCESS)