unlock, lock: Support --json.
This commit is contained in:
parent
325c40afef
commit
75ec0227f8
7 changed files with 27 additions and 2 deletions
|
@ -23,7 +23,7 @@ import Logs.Location
|
|||
import Git.FilePath
|
||||
|
||||
cmd :: Command
|
||||
cmd = notDirect $ withGlobalOptions annexedMatchingOptions $
|
||||
cmd = notDirect $ withGlobalOptions (jsonOption : annexedMatchingOptions) $
|
||||
command "lock" SectionCommon
|
||||
"undo unlock command"
|
||||
paramPaths (withParams seek)
|
||||
|
|
|
@ -26,7 +26,7 @@ editcmd :: Command
|
|||
editcmd = mkcmd "edit" "same as unlock"
|
||||
|
||||
mkcmd :: String -> String -> Command
|
||||
mkcmd n d = notDirect $ withGlobalOptions annexedMatchingOptions $
|
||||
mkcmd n d = notDirect $ withGlobalOptions (jsonOption : annexedMatchingOptions) $
|
||||
command n SectionCommon d paramPaths (withParams seek)
|
||||
|
||||
seek :: CmdParams -> CommandSeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue