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 Command
import Remote import Remote
import Logs.Trust import Logs.Trust
import GitAnnex.Options
def :: [Command] def :: [Command]
def = [noCommit $ command "whereis" paramPaths seek def = [noCommit $ withOptions [jsonOption] $
SectionQuery "lists repositories that have file content"] command "whereis" paramPaths seek SectionQuery
"lists repositories that have file content"]
seek :: [CommandSeek] seek :: [CommandSeek]
seek = [withValue (remoteMap id) $ \m -> seek = [withValue (remoteMap id) $ \m ->