mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-12-01 21:02:16 +03:00
080197e9e2
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.
15 lines
361 B
Haskell
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
|