zenith/app/ZenScan.hs

15 lines
353 B
Haskell
Raw Normal View History

2024-03-22 20:36:43 +00:00
{-# LANGUAGE OverloadedStrings #-}
module ZenScan where
import Data.Configurator
import Zenith.Scanner (scanZebra)
main :: IO ()
main = do
config <- load ["zenith.cfg"]
2024-04-04 18:21:55 +00:00
dbFilePath <- require config "dbFilePath"
2024-03-22 20:36:43 +00:00
zebraPort <- require config "zebraPort"
zebraHost <- require config "zebraHost"
2024-04-04 18:21:55 +00:00
scanZebra 2762066 zebraHost zebraPort dbFilePath