1{-# OPTIONS_GHC -Wall #-}
5import Control.Monad (void)
7import qualified Elm.Compiler.Objects as Obj
8import qualified Elm.Project as Project
9import qualified Elm.Project.Flags as Flags
10import qualified Reporting.Task as Task
11import qualified Reporting.Progress.Terminal as Terminal
13import qualified CommandLine.Args as Args
20run :: [FilePath] -> Args.MakeFlags -> IO ()
22 do reporter <- Terminal.create
23 void $ Task.run reporter $
24 do summary <- Project.getRoot
25 Project.compile (toOptions flags) summary paths
28-- TODO figure out --warn flag
29toOptions :: Args.MakeFlags -> Flags.Options
30toOptions (Args.MakeFlags _warn debug output server) =
32 mode = if debug then Obj.Debug else Obj.Prod
33 target = if server then Obj.Server else Obj.Client
35 Flags.Options mode target output
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list