rename helper
More consistent name with TransferrerPool
This commit is contained in:
parent
3fa2bc2eed
commit
677003a6df
6 changed files with 16 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
{- A pool of "git-annex transfer" processes
|
||||
{- A pool of "git-annex transferrer" processes
|
||||
-
|
||||
- Copyright 2013-2020 Joey Hess <id@joeyh.name>
|
||||
-
|
||||
|
@ -205,7 +205,7 @@ detectStalls (Just (StallDetection minsz duration)) metervar onstall = go Nothin
|
|||
mkTransferrer :: FilePath -> BatchCommandMaker -> IO Transferrer
|
||||
mkTransferrer program batchmaker = do
|
||||
{- It runs as a batch job. -}
|
||||
let (program', params') = batchmaker (program, [Param "transfer"])
|
||||
let (program', params') = batchmaker (program, [Param "transferrer"])
|
||||
{- It's put into its own group so that the whole group can be
|
||||
- killed to stop a transfer. -}
|
||||
(Just writeh, Just readh, _, pid) <- createProcess
|
||||
|
@ -246,10 +246,10 @@ readResponse h = do
|
|||
case readMaybe l of
|
||||
Just (TransferOutput so) -> return (Left so)
|
||||
Just (TransferResult r) -> return (Right r)
|
||||
Nothing -> transferProtocolError l
|
||||
Nothing -> transferrerProtocolError l
|
||||
|
||||
transferProtocolError :: String -> a
|
||||
transferProtocolError l = error $ "transfer protocol error: " ++ show l
|
||||
transferrerProtocolError :: String -> a
|
||||
transferrerProtocolError l = error $ "transferrer protocol error: " ++ show l
|
||||
|
||||
{- Closing the fds will shut down the transferrer, but only when it's
|
||||
- in between transfers. -}
|
||||
|
|
|
@ -35,7 +35,7 @@ import qualified Command.FromKey
|
|||
import qualified Command.RegisterUrl
|
||||
import qualified Command.SetKey
|
||||
import qualified Command.DropKey
|
||||
import qualified Command.Transfer
|
||||
import qualified Command.Transferrer
|
||||
import qualified Command.TransferKey
|
||||
import qualified Command.TransferKeys
|
||||
import qualified Command.SetPresentKey
|
||||
|
@ -178,7 +178,7 @@ cmds testoptparser testrunner mkbenchmarkgenerator =
|
|||
, Command.RegisterUrl.cmd
|
||||
, Command.SetKey.cmd
|
||||
, Command.DropKey.cmd
|
||||
, Command.Transfer.cmd
|
||||
, Command.Transferrer.cmd
|
||||
, Command.TransferKey.cmd
|
||||
, Command.TransferKeys.cmd
|
||||
, Command.SetPresentKey.cmd
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
- Licensed under the GNU AGPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Command.Transfer where
|
||||
module Command.Transferrer where
|
||||
|
||||
import Command
|
||||
import qualified Annex
|
||||
|
@ -22,7 +22,7 @@ import Annex.TransferrerPool
|
|||
import Text.Read (readMaybe)
|
||||
|
||||
cmd :: Command
|
||||
cmd = command "transfer" SectionPlumbing "transfers content"
|
||||
cmd = command "transferrer" SectionPlumbing "transfers content"
|
||||
paramNothing (withParams seek)
|
||||
|
||||
seek :: CmdParams -> CommandSeek
|
||||
|
@ -104,8 +104,8 @@ runRequests readh writeh a = go Nothing Nothing
|
|||
Just remote -> do
|
||||
sendresult =<< a tr remote
|
||||
go (Just remoteoruuid) mremote
|
||||
Nothing -> transferProtocolError l
|
||||
Nothing -> transferProtocolError l
|
||||
Nothing -> transferrerProtocolError l
|
||||
Nothing -> transferrerProtocolError l
|
||||
|
||||
sendresult b = liftIO $ do
|
||||
hPutStrLn writeh $ show $ TransferResult b
|
|
@ -1,10 +1,10 @@
|
|||
# NAME
|
||||
|
||||
git-annex transfer - transfers content
|
||||
git-annex transferrer - transfers content
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
git annex transfer
|
||||
git annex transferrer
|
||||
|
||||
# DESCRIPTION
|
||||
|
|
@ -631,11 +631,11 @@ content from the key-value store.
|
|||
|
||||
See [[git-annex-transferkey]](1) for details.
|
||||
|
||||
* `transfer`
|
||||
* `transferrer`
|
||||
|
||||
Used internally by git-annex to transfer content.
|
||||
|
||||
See [[git-annex-transfer]](1) for details.
|
||||
See [[git-annex-transferrer]](1) for details.
|
||||
|
||||
* `transferkeys`
|
||||
|
||||
|
|
|
@ -794,7 +794,7 @@ Executable git-annex
|
|||
Command.Test
|
||||
Command.TestRemote
|
||||
Command.TransferInfo
|
||||
Command.Transfer
|
||||
Command.Transferrer
|
||||
Command.TransferKey
|
||||
Command.TransferKeys
|
||||
Command.Trust
|
||||
|
|
Loading…
Reference in a new issue