module Achille.Config
( Config (..)
, def
) where
import System.FilePath (FilePath)
import Data.Default (Default, def)
data Config = Config
{ Config -> FilePath
contentDir :: FilePath
, Config -> FilePath
outputDir :: FilePath
, Config -> FilePath
cacheFile :: FilePath
, Config -> Maybe FilePath
deployCmd :: Maybe String
}
instance Default Config where
def :: Config
def = Config :: FilePath -> FilePath -> FilePath -> Maybe FilePath -> Config
Config
{ contentDir :: FilePath
contentDir = "content"
, outputDir :: FilePath
outputDir = "_site"
, cacheFile :: FilePath
cacheFile = ".cache"
, deployCmd :: Maybe FilePath
deployCmd = Maybe FilePath
forall a. Maybe a
Nothing
}