Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit e459420

Browse files
committed
Optimize console info.
1 parent 14fb119 commit e459420

File tree

1 file changed

+5
-4
lines changed
  • src/Language/PipeScript/Interpreter

1 file changed

+5
-4
lines changed

src/Language/PipeScript/Interpreter/Eval.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ runCommand command args = do
122122
++ ", run pipe without --parallel for more information.",
123123
""
124124
]
125-
when isVerbose $ liftIO $ putStrLn ""
125+
--when isVerbose $ liftIO $ putStrLn ""
126126
return ValUnit
127127

128128
evalApplyExpr :: Expression -> [Expression] -> Interpreter Value
@@ -211,19 +211,20 @@ evalTopLevel' args (scr, tl) = evalTopLevel scr tl args
211211

212212
evalTopLevel :: Script -> TopLevel -> [Value] -> Interpreter ()
213213
evalTopLevel script topLevel arguments = do
214-
isVerbose <- verbose <$> get
214+
--isVerbose <- verbose <$> get
215+
{-
215216
liftIO $ when isVerbose $ do
216217
pretty <- supportsPretty
217218
let args' = foldl' (\a b -> a ++ " " ++ b) "" $ fmap show arguments
218219
let printStyle = if pretty then color Green . style Bold else id
219-
putStrLn $ printStyle $ "- " ++ show topLevel ++ args'
220+
putStrLn $ printStyle $ "- " ++ show topLevel ++ args' -}
220221

221222
prevScript <- curScript <$> get
222223
prevTopLevel <- curTopLevel <$> get
223224
modify $ \c -> c {curTopLevel = topLevel, curScript = script}
224225
eval topLevel
225226
modify $ \c -> c {curTopLevel = prevTopLevel, curScript = prevScript}
226-
when isVerbose $ liftIO $ putStrLn ""
227+
--when isVerbose $ liftIO $ putStrLn ""
227228
where
228229
eval (Include _) = return ()
229230
eval (ActionDefination b) = variableScope $ evalBlock b

0 commit comments

Comments
 (0)