diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:08:02 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:08:02 -0400 |
commit | e7e61fb6cbe5455ded9bb550a64121223c099fc2 (patch) | |
tree | 003a99697256ea516ad40f9fbdb854996b58c0cd /Command/Trust.hs | |
parent | 8879c96d157f06bbd2372064251676b7927ce38e (diff) |
convert all commands to work with optparse-applicative
Still no options though.
Diffstat (limited to 'Command/Trust.hs')
-rw-r--r-- | Command/Trust.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Command/Trust.hs b/Command/Trust.hs index 6f3382c30..33ecc2e64 100644 --- a/Command/Trust.hs +++ b/Command/Trust.hs @@ -17,13 +17,13 @@ import Logs.Group import qualified Data.Set as S cmd :: Command -cmd = command "trust" (paramRepeating paramRemote) seek - SectionSetup "trust a repository" +cmd = command "trust" SectionSetup "trust a repository" + (paramRepeating paramRemote) (withParams seek) -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek = trustCommand "trust" Trusted -trustCommand :: String -> TrustLevel -> CommandSeek +trustCommand :: String -> TrustLevel -> CmdParams -> CommandSeek trustCommand c level = withWords start where start ws = do |