--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
|
@ -39,7 +39,7 @@ optParser :: CmdParamsDesc -> Parser WhereisOptions
|
|||
optParser desc = WhereisOptions
|
||||
<$> cmdParams desc
|
||||
<*> optional parseKeyOptions
|
||||
<*> parseBatchOption
|
||||
<*> parseBatchOption True
|
||||
<*> optional parseFormatOption
|
||||
|
||||
parseFormatOption :: Parser Utility.Format.Format
|
||||
|
@ -62,7 +62,7 @@ seek o = do
|
|||
(commandAction . startKeys o m)
|
||||
(withFilesInGitAnnex ww seeker)
|
||||
=<< workTreeItems ww (whereisFiles o)
|
||||
Batch fmt -> batchAnnexedFilesMatching fmt seeker
|
||||
Batch fmt -> batchAnnexed fmt seeker (startKeys o m)
|
||||
where
|
||||
ww = WarnUnmatchLsFiles
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue