1{-# LANGUAGE OverloadedStrings #-}
11import qualified Elm.Compiler.Module as Module
12import qualified Json.Encode as Encode
13import qualified Reporting.Doc as D
14import qualified Reporting.Exit.Assets as Asset
15import qualified Reporting.Exit.Bump as Bump
16import qualified Reporting.Exit.Compile as Compile
17import qualified Reporting.Exit.Crawl as Crawl
18import qualified Reporting.Exit.Deps as Deps
19import qualified Reporting.Exit.Diff as Diff
20import qualified Reporting.Exit.Help as Help
21import qualified Reporting.Exit.Http as Http
22import qualified Reporting.Exit.Make as Make
23import qualified Reporting.Exit.Init as Init
24import qualified Reporting.Exit.Install as Install
25import qualified Reporting.Exit.Publish as Publish
36 | Compile Compile.Exit [Compile.Exit]
38 | Cycle [Module.Raw] -- TODO write docs to help with this scenario
43 | Install Install.Exit
44 | Publish Publish.Exit
45 | BadHttp String Http.Exit
52toString :: Exit -> String
54 Help.toString (Help.reportToDoc (toReport exit))
57toStderr :: Exit -> IO ()
59 Help.toStderr (Help.reportToDoc (toReport exit))
62toJson :: Exit -> Encode.Value
64 Help.reportToJson (toReport exit)
67toReport :: Exit -> Help.Report
71 Help.report "NO elm.json FILE" Nothing
72 "It looks like you are starting a new Elm project. Very exciting! Try running:"
73 [ D.indent 4 $ D.green $ "elm init"
75 "It will help you get set up. It is really simple!"
79 Asset.toReport assetExit
82 Bump.toReport bumpExit
85 Help.compilerReport e es
88 Crawl.toReport crawlExit
91 Help.report "IMPORT CYCLE" Nothing
92 "Your module imports form a cycle:"
95 "Learn more about why this is disallowed and how to break cycles here:"
96 ++ D.makeLink "import-cycles"
100 Deps.toReport depsExit
103 Diff.toReport commandsExit
106 Make.toReport makeExit
109 Init.toReport initExit
111 Install installExit ->
112 Install.toReport installExit
114 Publish publishExit ->
115 Publish.toReport publishExit
117 BadHttp url httpExit ->
118 Http.toReport url httpExit
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