summaryrefslogtreecommitdiff
path: root/Command/ReKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:08:02 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:08:02 -0400
commite7e61fb6cbe5455ded9bb550a64121223c099fc2 (patch)
tree003a99697256ea516ad40f9fbdb854996b58c0cd /Command/ReKey.hs
parent8879c96d157f06bbd2372064251676b7927ce38e (diff)
convert all commands to work with optparse-applicative
Still no options though.
Diffstat (limited to 'Command/ReKey.hs')
-rw-r--r--Command/ReKey.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/Command/ReKey.hs b/Command/ReKey.hs
index 2a2787898..597be57a5 100644
--- a/Command/ReKey.hs
+++ b/Command/ReKey.hs
@@ -19,11 +19,13 @@ import Utility.CopyFile
import qualified Remote
cmd :: Command
-cmd = notDirect $ command "rekey"
- (paramRepeating $ paramPair paramPath paramKey)
- seek SectionPlumbing "change keys used for files"
+cmd = notDirect $
+ command "rekey" SectionPlumbing
+ "change keys used for files"
+ (paramRepeating $ paramPair paramPath paramKey)
+ (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withPairs start
start :: (FilePath, String) -> CommandStart