aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 6c110e2..7f7c532 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,7 +7,7 @@ use color_eyre::{
};
use hittekaart::{
gpx::{self, Compression},
- renderer::{self, heatmap, Renderer},
+ renderer::{self, heatmap, tilehunt, Renderer},
storage::{Folder, Sqlite, Storage},
};
use indicatif::{MultiProgress, ProgressBar, ProgressDrawTarget, ProgressStyle};
@@ -71,7 +71,10 @@ fn main() -> Result<()> {
.num_threads(args.threads)
.build_global()?;
- run::<heatmap::Renderer>(args)
+ match args.mode {
+ Mode::Heatmap => run::<heatmap::Renderer>(args),
+ Mode::Tilehunt => run::<tilehunt::Renderer>(args),
+ }
}
fn run<R: Renderer>(args: Args) -> Result<()> {