Merge pull request #5290 from sellout/transcript-stanza-counter

Improve transcript runner output
This commit is contained in:
Arya Irani 2024-09-03 13:59:47 -04:00 committed by GitHub
commit e812c302b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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