diff options
author | metamuffin <metamuffin@disroot.org> | 2022-10-17 22:17:24 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-10-17 22:17:24 +0200 |
commit | 0a6122efbbdea974d963e167db1d660c81ea16e7 (patch) | |
tree | 36bce185bc5b7e718e508dab44f3a5fb11459bfa /src/main.rs | |
parent | bcfc5827a949172aedbd6c7cd1881a47db42c46d (diff) | |
download | trash-map-0a6122efbbdea974d963e167db1d660c81ea16e7.tar trash-map-0a6122efbbdea974d963e167db1d660c81ea16e7.tar.bz2 trash-map-0a6122efbbdea974d963e167db1d660c81ea16e7.tar.zst |
a
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index ce1906e..e824826 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,10 @@ pub mod dimension; pub mod render; +pub mod tiling; pub mod viewer; use clap::{Parser, Subcommand}; +use dimension::Dimension; use std::{net::SocketAddr, path::PathBuf}; use viewer::serve_http; @@ -26,13 +28,15 @@ enum Action { fn main() { env_logger::builder() - .filter_level(log::LevelFilter::Debug) + .filter_level(log::LevelFilter::Info) .parse_env("LOG") .init(); let args = Args::parse(); + let dimension = Dimension::new(args.dimension); + match args.action { - Action::Serve { bind } => serve_http(bind), + Action::Serve { bind } => serve_http(dimension, bind), } } |