2024-03-22 20:36:43 +00:00
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
|
|
|
|
module ZenScan where
|
|
|
|
|
2024-05-05 14:49:55 +00:00
|
|
|
import Control.Monad.Logger (runNoLoggingT)
|
2024-03-22 20:36:43 +00:00
|
|
|
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-05-05 14:49:55 +00:00
|
|
|
runNoLoggingT $ scanZebra 2762066 zebraHost zebraPort dbFilePath
|