whereis --batch

This commit is contained in:
Joey Hess 2016-01-20 12:46:00 -04:00
parent d44177c774
commit 9b9b5a30e1
Failed to extract signature
6 changed files with 33 additions and 13 deletions

View file

@ -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