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