mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-05 22:27:28 +03:00
Merge pull request #5290 from sellout/transcript-stanza-counter
Improve transcript runner output
This commit is contained in:
commit
e812c302b2
@ -280,17 +280,24 @@ run isTest verbosity dir stanzas codebase runtime sbRuntime nRuntime ucmVersion
|
||||
maybeStanza <- atomically (Q.tryDequeue inputQueue)
|
||||
_ <- liftIO (writeIORef mStanza maybeStanza)
|
||||
case maybeStanza of
|
||||
Nothing -> do
|
||||
liftIO (putStrLn "")
|
||||
Nothing -> liftIO do
|
||||
clearCurrentLine
|
||||
putStrLn "\r✔️ Completed transcript."
|
||||
pure $ Right QuitI
|
||||
Just (s, idx) -> do
|
||||
Just (s, midx) -> do
|
||||
unless (Verbosity.isSilent verbosity) . liftIO $ do
|
||||
clearCurrentLine
|
||||
putStr $
|
||||
"\r⚙️ Processing stanza "
|
||||
++ show idx
|
||||
++ " of "
|
||||
++ show (length stanzas)
|
||||
++ "."
|
||||
maybe
|
||||
"\r⏩ Skipping non-executable Markdown block."
|
||||
( \idx ->
|
||||
"\r⚙️ Processing stanza "
|
||||
++ show idx
|
||||
++ " of "
|
||||
++ show (length stanzas)
|
||||
++ "."
|
||||
)
|
||||
midx
|
||||
IO.hFlush IO.stdout
|
||||
either
|
||||
( \node -> do
|
||||
|
Loading…
Reference in New Issue
Block a user