add showSideAction

This commit is contained in:
Joey Hess 2010-11-08 16:45:41 -04:00
parent 98a77ab725
commit ba59ac13b2

View file

@ -20,6 +20,9 @@ verbose a = do
q <- Annex.flagIsSet "quiet" q <- Annex.flagIsSet "quiet"
unless q a unless q a
showSideAction :: String -> Annex ()
showSideAction s = verbose $ liftIO $ putStrLn $ "(" ++ s ++ ")"
showStart :: String -> String -> Annex () showStart :: String -> String -> Annex ()
showStart command file = verbose $ do showStart command file = verbose $ do
liftIO $ putStr $ command ++ " " ++ file ++ " " liftIO $ putStr $ command ++ " " ++ file ++ " "