mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-09-11 20:27:09 +03:00
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.
18 lines
419 B
Haskell
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
|