add startingNoMessage
Fixes the last wart in the StartMessage transition. A few commands include other CommandStart actions that generate output, and do not themselves need to display a start/end message.
This commit is contained in:
parent
70bc30acb1
commit
ba2551da6f
6 changed files with 17 additions and 7 deletions
|
@ -98,13 +98,14 @@ showStartMessage (StartUsualMessages command ai) = do
|
|||
QuietOutput -> Annex.setOutput NormalOutput
|
||||
_ -> noop
|
||||
showStartMessage (StartMessage command ai)
|
||||
showStartMessage (CustomOutput _) = do
|
||||
Annex.setOutput QuietOutput
|
||||
showStartMessage (StartNoMessage _) = noop
|
||||
showStartMessage (CustomOutput _) = Annex.setOutput QuietOutput
|
||||
|
||||
-- Only show end result if the StartMessage is one that gets displayed.
|
||||
showEndMessage :: StartMessage -> Bool -> Annex ()
|
||||
showEndMessage (StartMessage _ _) = showEndResult
|
||||
showEndMessage (StartUsualMessages _ _) = showEndResult
|
||||
showEndMessage (StartNoMessage _) = const noop
|
||||
showEndMessage (CustomOutput _) = const noop
|
||||
|
||||
showNote :: String -> Annex ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue