mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-05 03:56:26 +03:00
language: added an output file option to the new build
command. (#511)
This adds an output file option to `daml build` to specify where to write the created dar.
This commit is contained in:
parent
bdb5160403
commit
c049df1261
@ -135,7 +135,7 @@ cmdBuild numProcessors =
|
||||
info (helper <*> cmd) $
|
||||
progDesc "Initialize, build and package the DAML project" <> fullDesc
|
||||
where
|
||||
cmd = pure $ execBuild numProcessors
|
||||
cmd = execBuild numProcessors <$> optionalOutputFileOpt
|
||||
|
||||
cmdPackageNew :: Int -> Mod CommandFields Command
|
||||
cmdPackageNew numProcessors =
|
||||
@ -394,10 +394,10 @@ createProjectPackageDb lfVersion fps = do
|
||||
, "--expand-pkgroot"
|
||||
]
|
||||
|
||||
execBuild :: Int -> IO ()
|
||||
execBuild numProcessors = do
|
||||
execBuild :: Int -> Maybe FilePath -> IO ()
|
||||
execBuild numProcessors mbOutFile = do
|
||||
execInit
|
||||
execPackageNew numProcessors Nothing
|
||||
execPackageNew numProcessors mbOutFile
|
||||
|
||||
lfVersionString :: LF.Version -> String
|
||||
lfVersionString lfVersion =
|
||||
|
Loading…
Reference in New Issue
Block a user