foliage/app/Main.hs
Andrea Bedini 9a4d097cde Rework internals and add consistency check
The function preparePackageVersion is now responsible for doing
everything we need to do to be able to include the package in the index.

The function also returns a denormalised view of the package information
which can be taken as a proof that everything is consistent.
2023-03-03 08:15:19 +08:00

18 lines
419 B
Haskell

{-# LANGUAGE LambdaCase #-}
module Main where
import Foliage.CmdBuild
import Foliage.CmdCreateKeys
import Foliage.CmdImportIndex
import Foliage.Options
import Main.Utf8 (withUtf8)
main :: IO ()
main = withUtf8 $ do
putStrLn "🌿 Foliage"
parseCommand >>= \case
CreateKeys path -> cmdCreateKeys path
Build buildOpts -> cmdBuild buildOpts
ImportIndex importIndexOpts -> cmdImportIndex importIndexOpts