diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-01-11 19:33:54 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-01-11 21:55:28 +0100 |
commit | 17998a5e8d386b58d30d138ea8dbc565955cccc6 (patch) | |
tree | 3bad48996590b33c1d64557b31a4fca8221eca18 /src/Main.hs | |
parent | 61a9e98239cf01e91ca079ef176602efe0077dde (diff) |
Concurrently run jobs for multiple commits
Changelog: Concurrently run jobs for multiple commits
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs index c693281..d24642d 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -17,6 +17,7 @@ import System.IO import Command import Command.Run import Config +import Terminal import Version data CmdlineOptions = CmdlineOptions @@ -120,7 +121,7 @@ fullCommandOptions proxy = ] runSomeCommand :: CommonOptions -> SomeCommandType -> [ String ] -> IO () -runSomeCommand copts (SC tproxy) args = do +runSomeCommand ciOptions (SC tproxy) args = do let exitWithErrors errs = do hPutStrLn stderr $ concat errs <> "Try `minici " <> commandName tproxy <> " --help' for more information." exitFailure @@ -142,7 +143,8 @@ runSomeCommand copts (SC tproxy) args = do Left err -> do putStr err exitFailure - Right config -> do + Right ciConfig -> do let cmd = commandInit tproxy (fcoSpecific opts) cmdargs let CommandExec exec = commandExec cmd - flip runReaderT ( copts, config ) exec + ciTerminalOutput <- initTerminalOutput + flip runReaderT CommandInput {..} exec |