foliage/app/Main.hs
Andrea Bedini 080197e9e2
Big rewrite
1. Foliage takes as input a complete description of the index, where
   source distributions and revisions come with a timestamp. This allows
   us to recreate the entire index in a reproducible way.

2. Added a experimental command to import an index from a Hackage (as
   downloaded with Cabal). This was originally a testing/development
   need but there might be different use cases.
2022-03-28 17:18:27 +08:00

15 lines
361 B
Haskell

module Main where
import Foliage.CmdBuild
import Foliage.CmdCreateKeys
import Foliage.CmdImportHackage
import Foliage.Options
main :: IO ()
main = do
putStrLn "🌿 Foliage"
parseCommand >>= \case
CreateKeys path -> cmdCreateKeys path
Build buildOpts -> cmdBuild buildOpts
ImportHackage importHackageOpts -> cmdImportHackage importHackageOpts