maxsize overview display and --json support
This commit is contained in:
parent
016edcf437
commit
99514f9d18
8 changed files with 109 additions and 27 deletions
11
Messages.hs
11
Messages.hs
|
@ -55,6 +55,7 @@ module Messages (
|
|||
mkPrompter,
|
||||
sanitizeTopLevelExceptionMessages,
|
||||
countdownToMessage,
|
||||
enableNormalOutput,
|
||||
) where
|
||||
|
||||
import Control.Concurrent
|
||||
|
@ -87,9 +88,7 @@ showStartMessage (StartMessage command ai si) =
|
|||
where
|
||||
json = JSON.startActionItem command ai si
|
||||
showStartMessage (StartUsualMessages command ai si) = do
|
||||
outputType <$> Annex.getState Annex.output >>= \case
|
||||
QuietOutput -> Annex.setOutput NormalOutput
|
||||
_ -> noop
|
||||
enableNormalOutput
|
||||
showStartMessage (StartMessage command ai si)
|
||||
showStartMessage (StartNoMessage _) = noop
|
||||
showStartMessage (CustomOutput _) =
|
||||
|
@ -379,3 +378,9 @@ countdownToMessage n showmsg
|
|||
| otherwise = do
|
||||
let !n' = pred n
|
||||
return n'
|
||||
|
||||
enableNormalOutput :: Annex ()
|
||||
enableNormalOutput =
|
||||
outputType <$> Annex.getState Annex.output >>= \case
|
||||
QuietOutput -> Annex.setOutput NormalOutput
|
||||
_ -> noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue