Refactored project to use Builder pattern.

This commit is contained in:
2025-10-26 22:01:13 +01:00
parent a908bf0e8a
commit 146509efdf
7 changed files with 669 additions and 284 deletions

View File

@@ -20,7 +20,12 @@ use pages::{
#[derive(Parser)]
#[command(name = "aindustries-be", version, about = "This is the amazing webserver for aindustries.be!", long_about = None)]
struct Cli {
#[arg(short, long, value_name = "CONFIG", help = "Path to config file, defaults to /etc/aindustries-be/config.toml")]
#[arg(
short,
long,
value_name = "CONFIG",
help = "Path to config file, defaults to /etc/aindustries-be/config.toml"
)]
config: Option<String>,
}