whereis supports --json, add option

This commit is contained in:
Joey Hess 2014-01-18 13:05:56 -04:00
parent 456c9eedb0
commit d793f20886

View file

@ -13,10 +13,12 @@ import Common.Annex
import Command
import Remote
import Logs.Trust
import GitAnnex.Options
def :: [Command]
def = [noCommit $ command "whereis" paramPaths seek
SectionQuery "lists repositories that have file content"]
def = [noCommit $ withOptions [jsonOption] $
command "whereis" paramPaths seek SectionQuery
"lists repositories that have file content"]
seek :: [CommandSeek]
seek = [withValue (remoteMap id) $ \m ->