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-upload" <>
84 help "Skip uploading bundle, docs, etc.")) <*>
86 (long "enable-library-profiling" <>
87 help "Enable profiling when building") <*>
89 (long "verbose" <> short 'v' <>
90 help "Output verbose detail about the build steps") <*>
93 help "Skip the check phase, and pass --allow-newer to cabal configure")
95 nightlyUploadFlags = fromString <$> strArgument
97 help "Date, in YYYY-MM-DD format")
106 help "Stackage bundle containing build plan")) <|>
108 (BPSFile . decodeString)
110 (long "build-plan" <>
112 help "Build-plan YAML file"))) <*>
116 (metavar "DESTINATION-PATH" <>
117 help "Destination directory path")) <*>
119 (Just . decodeString)
123 help "Location of log files (default DESTINATION-PATH/logs)")) <|>
129 showDefault <> value 8 <>
130 help "Number of threads") <*>
133 help "Install in global package database") <*>
137 (long "skip-tests" <>
138 help "Skip build and running the test suites")) <*>
140 (long "enable-library-profiling" <>
141 help "Enable profiling when building") <*>
143 (long "verbose" <> short 'v' <>
144 help "Output verbose detail about the build steps") <*>
146 (long "skip-check" <>
147 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