--batch-keys
New --batch-keys option added to these commands: get, drop, move, copy, whereis git-annex-matching-options had to be reworded since some of its options can be used to match on keys, not only files. Sponsored-by: Luke Shumaker on Patreon
This commit is contained in:
parent
c64e80b357
commit
ab7b5a492c
33 changed files with 244 additions and 133 deletions
|
@ -35,7 +35,7 @@ data FromKeyOptions = FromKeyOptions
|
|||
optParser :: CmdParamsDesc -> Parser FromKeyOptions
|
||||
optParser desc = FromKeyOptions
|
||||
<$> cmdParams desc
|
||||
<*> parseBatchOption
|
||||
<*> parseBatchOption False
|
||||
|
||||
seek :: FromKeyOptions -> CommandSeek
|
||||
seek o = do
|
||||
|
@ -43,7 +43,7 @@ seek o = do
|
|||
case (batchOption o, keyFilePairs o) of
|
||||
(Batch fmt, _) -> seekBatch matcher fmt
|
||||
-- older way of enabling batch input, does not support BatchNull
|
||||
(NoBatch, []) -> seekBatch matcher BatchLine
|
||||
(NoBatch, []) -> seekBatch matcher (BatchFormat BatchLine (BatchKeys False))
|
||||
(NoBatch, ps) -> do
|
||||
force <- Annex.getState Annex.force
|
||||
withPairs (commandAction . start matcher force) ps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue