1{-# LANGUAGE OverloadedStrings #-}
2module Reporting.Exit.Init
9import qualified Elm.Package as Pkg
10import qualified Reporting.Doc as D
11import qualified Reporting.Exit.Help as Help
19 = NoSolution [Pkg.Name]
27toReport :: Exit -> Help.Report
31 Help.report "NO SOLUTION" Nothing
32 "I tried to create an elm.json with the following direct dependencies:"
33 [ D.indent 4 $ D.vcat $
34 map (D.dullyellow . D.fromChars . Pkg.toChars) pkgs
36 "I could not find compatible versions though! This should not happen, so please\
37 \ ask around one of the community forums <http://elm-lang.org/community> to learn\
42 Help.report "EXISTING PROJECT" Nothing
43 "You already have an elm.json file, so there is nothing for me to initialize!"
45 ["Maybe",D.green (D.fromChars (D.makeLink "init")),"can","help"
46 ,"you","figure","out","what","to","do","next?"
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