dropunused: Support --jobs
Sponsored-by: Kevin Mueller on Patreon
This commit is contained in:
parent
33ba537728
commit
7f38355860
4 changed files with 13 additions and 2 deletions
|
@ -20,7 +20,7 @@ import Annex.Content
|
|||
import qualified Utility.RawFilePath as R
|
||||
|
||||
cmd :: Command
|
||||
cmd = withAnnexOptions [jsonOptions] $
|
||||
cmd = withAnnexOptions [jobsOption, jsonOptions] $
|
||||
command "dropunused" SectionMaintenance
|
||||
"drop unused file content"
|
||||
(paramRepeating paramNumRange) (seek <$$> optParser)
|
||||
|
@ -36,7 +36,7 @@ optParser desc = DropUnusedOptions
|
|||
<*> optional (Command.Drop.parseDropFromOption)
|
||||
|
||||
seek :: DropUnusedOptions -> CommandSeek
|
||||
seek o = do
|
||||
seek o = startConcurrency commandStages $ do
|
||||
numcopies <- getNumCopies
|
||||
mincopies <- getMinCopies
|
||||
from <- maybe (pure Nothing) (Just <$$> getParsed) (dropFrom o)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue