1{-# LANGUAGE TupleSections #-}
7import Data.String (fromString)
9import Options.Applicative
10import Paths_stackage (version)
11import Stackage.CompleteBuild
18 (helpOption <*> versionOption <*> config)
23 abortOption ShowHelpText $
25 help "Show this help text"
28 ("fpbuild version " ++ showVersion version)
30 help "Show fpbuild version")
35 (uncurry completeBuild)
36 (fmap (Nightly, ) buildFlags)
38 "Build, test and upload the Nightly snapshot"
40 (uncurry completeBuild)
41 (fmap (LTS Major, ) buildFlags)
43 "Build, test and upload the LTS (major) snapshot"
45 (uncurry completeBuild)
46 (fmap (LTS Minor, ) buildFlags)
48 "Build, test and upload the LTS (minor) snapshot"
53 "Upload an already-built nightly snapshot"
58 "Just check that the build plan is ok"]
59 cmnd exec parse name desc =
70 help "Skip build and running the test suites")) <*>
74 (long "skip-upload" <>
75 help "Skip uploading bundle, docs, etc.")) <*>
77 (long "enable-library-profiling" <>
78 help "Enable profiling when building") <*>
80 (long "verbose" <> short 'v' <>
81 help "Output verbose detail about the build steps") <*>
84 help "Skip the check phase, and pass --allow-newer to cabal configure")
86 nightlyUploadFlags = fromString <$> strArgument
88 help "Date, in YYYY-MM-DD format")
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