1{-# LANGUAGE TupleSections #-}
7import Data.String (fromString)
9import Options.Applicative
10import Filesystem.Path.CurrentOS (decodeString)
11import Paths_stackage (version)
12import Stackage.CompleteBuild
13import Stackage.InstallBuild
20 (helpOption <*> versionOption <*> config)
25 abortOption ShowHelpText $
27 help "Show this help text"
30 ("stackage version " ++ showVersion version)
32 help "Show stackage version")
37 (uncurry completeBuild)
38 (fmap (Nightly, ) buildFlags)
40 "Build, test and upload the Nightly snapshot"
42 (uncurry completeBuild)
43 (fmap (LTS Major, ) buildFlags)
45 "Build, test and upload the LTS (major) snapshot"
47 (uncurry completeBuild)
48 (fmap (LTS Minor, ) buildFlags)
50 "Build, test and upload the LTS (minor) snapshot"
55 "Upload an already-built nightly snapshot"
60 "Just check that the build plan is ok"
65 "Install a snapshot from an existing build plan"]
67 cmnd exec parse name desc =
70 (fmap exec (parse <**> helpOption))
79 help "Skip build and running the test suites")) <*>
83 (long "skip-haddock" <>
84 help "Skip generating haddock documentation")) <*>
88 (long "skip-upload" <>
89 help "Skip uploading bundle, docs, etc.")) <*>
91 (long "enable-library-profiling" <>
92 help "Enable profiling when building") <*>
94 (long "verbose" <> short 'v' <>
95 help "Output verbose detail about the build steps") <*>
98 help "Skip the check phase, and pass --allow-newer to cabal configure")
100 nightlyUploadFlags = fromString <$> strArgument
102 help "Date, in YYYY-MM-DD format")
111 help "Stackage bundle containing build plan")) <|>
113 (BPSFile . decodeString)
115 (long "build-plan" <>
117 help "Build-plan YAML file"))) <*>
121 (metavar "DESTINATION-PATH" <>
122 help "Destination directory path")) <*>
124 (Just . decodeString)
128 help "Location of log files (default DESTINATION-PATH/logs)")) <|>
134 showDefault <> value 8 <>
135 help "Number of threads") <*>
138 help "Install in global package database") <*>
142 (long "skip-tests" <>
143 help "Skip build and running the test suites")) <*>
147 (long "skip-haddock" <>
148 help "Skip generating haddock documentation")) <*>
150 (long "enable-library-profiling" <>
151 help "Enable profiling when building") <*>
153 (long "verbose" <> short 'v' <>
154 help "Output verbose detail about the build steps") <*>
156 (long "skip-check" <>
157 help "Skip the check phase, and pass --allow-newer to cabal configure")
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