wolf-0.3.4: main/actor.hs
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Run actor.
--
import Network.AWS.Wolf
import Options.Generic
-- | Args
--
-- Program arguments.
--
data Args = Args
{ config :: FilePath
-- ^ Configuration file.
, queue :: Text
-- ^ Queue to listen to act on.
, command :: String
-- ^ Command to run.
} deriving (Show, Generic)
instance ParseRecord Args
-- | Run actor.
--
main :: IO ()
main = do
args <- getRecord "Actor"
actMain
(config args)
(queue args)
(command args)