feat: load config in tuono CLI (#399)

This commit is contained in:
Valerio Ageno
2025-01-22 18:01:29 +01:00
committed by GitHub
parent 4e649acd60
commit 3ee47e9481
6 changed files with 73 additions and 48 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ use std::fs::read_to_string;
use std::io;
use std::path::PathBuf;
#[derive(Deserialize)]
#[derive(Deserialize, Debug, Clone)]
pub struct ServerConfig {
pub host: String,
pub port: u16,
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug, Clone)]
pub struct Config {
pub server: ServerConfig,
}