]> dgit.raspbian.org Git - git-annex.git/commitdiff
comments
authorJoey Hess <joeyh@joeyh.name>
Thu, 3 Dec 2020 18:57:22 +0000 (14:57 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 3 Dec 2020 18:57:22 +0000 (14:57 -0400)
Types/Messages.hs

index 273fd713b2c9bd56256298ae2a51300df46ae609..b61eec8cc9fbe31a20a40107b7ceea4da7004411 100644 (file)
@@ -61,9 +61,14 @@ newMessageState = do
                , promptLock = promptlock
                }
 
+-- | When communicating with a child process over a pipe while it is
+-- performing some action, this is used to pass back output that the child
+-- would normally display to the console.
 data SerializedOutput
        = OutputMessage S.ByteString
        | OutputError String
        | ProgressMeter (Maybe Integer) MeterState MeterState
        | JSONObject L.ByteString
+       -- ^ This is always sent, it's up to the consumer to decide if it
+       -- wants to display JSON, or human-readable messages.
        deriving (Show, Read)