diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-10-30 14:44:11 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-10-30 14:44:11 -0400 |
commit | dc1c08d474518234642ce78935d8835ff847cf35 (patch) | |
tree | 555c911001c3eab044af3926d3004a96a23a5eec /Command | |
parent | bf94d1eed92349527f8ad9d77347e411cbd8c3c4 (diff) |
unlock, lock: Support --json.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Lock.hs | 2 | ||||
-rw-r--r-- | Command/Unlock.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Command/Lock.hs b/Command/Lock.hs index 90d293799..e3e3e0fe7 100644 --- a/Command/Lock.hs +++ b/Command/Lock.hs @@ -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) diff --git a/Command/Unlock.hs b/Command/Unlock.hs index 274f4af3c..44e3f1bf3 100644 --- a/Command/Unlock.hs +++ b/Command/Unlock.hs @@ -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 |