From 200db4e9dca32de6f01cc88ed88971a817b08aff Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 28 Oct 2023 21:59:10 +0200 Subject: recursive federation!! --- tool/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tool/src') diff --git a/tool/src/main.rs b/tool/src/main.rs index 8a67f30..8135d20 100644 --- a/tool/src/main.rs +++ b/tool/src/main.rs @@ -33,6 +33,8 @@ enum Action { base_path: PathBuf, #[arg(short, long)] brand: String, + #[arg(short, long)] + hostname: String, }, /// Imports a movie, video or series given media and metadata sources New { @@ -90,6 +92,7 @@ fn main() -> anyhow::Result<()> { Action::Init { base_path: path, brand, + hostname, } => { info!("creating new instance..."); std::fs::create_dir_all(path.join("library"))?; @@ -101,6 +104,7 @@ fn main() -> anyhow::Result<()> { File::create_new(path.join("config.yaml"))?, &GlobalConfig { brand: brand.clone(), + hostname, slogan: "Creative slogan here".to_string(), asset_path: path.join("assets"), cache_path: path.join("cache"), -- cgit v1.2.3-70-g09d2