whereis supports --json, add option
This commit is contained in:
parent
456c9eedb0
commit
d793f20886
1 changed files with 4 additions and 2 deletions
|
@ -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 ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue