hledger-flow-0.13.2.0: src/Hledger/Flow/RuntimeOptions.hs
module Hledger.Flow.RuntimeOptions
where
import Turtle
import Prelude hiding (FilePath, putStrLn)
import Hledger.Flow.Types
data RuntimeOptions = RuntimeOptions { baseDir :: FilePath
, importRunDir :: FilePath
, useRunDir :: Bool
, hfVersion :: Text
, hledgerInfo :: HledgerInfo
, sysInfo :: SystemInfo
, verbose :: Bool
, showOptions :: Bool
, sequential :: Bool
}
deriving (Show)
instance HasVerbosity RuntimeOptions where
verbose (RuntimeOptions _ _ _ _ _ _ v _ _) = v
instance HasSequential RuntimeOptions where
sequential (RuntimeOptions _ _ _ _ _ _ _ _ sq) = sq
instance HasBaseDir RuntimeOptions where
baseDir (RuntimeOptions bd _ _ _ _ _ _ _ _) = bd