whereis --batch
This commit is contained in:
parent
d44177c774
commit
9b9b5a30e1
6 changed files with 33 additions and 13 deletions
|
@ -65,3 +65,8 @@ batchInput parser a = do
|
|||
batchCommandAction :: CommandStart -> Annex ()
|
||||
batchCommandAction a = maybe (batchBadInput Batch) (const noop)
|
||||
=<< callCommandAction' a
|
||||
|
||||
-- Reads lines of batch input and passes the filepaths to a CommandStart
|
||||
-- to handle them.
|
||||
batchFiles :: (FilePath -> CommandStart) -> Annex ()
|
||||
batchFiles a = batchInput Right $ batchCommandAction . a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue