diff options
author | Joey Hess <joey@kitenet.net> | 2014-02-20 15:12:35 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-02-20 15:12:35 -0400 |
commit | cfdcf25d13eaa2a6a8b2601a50fda4370645c639 (patch) | |
tree | 2974ca42fe2262805a96f588033ba4ffd8ecc1ee /Command/Untrust.hs | |
parent | 1c8c95915c3e234a3c8d24a4f5218a913239e15f (diff) |
refactor
Diffstat (limited to 'Command/Untrust.hs')
-rw-r--r-- | Command/Untrust.hs | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/Command/Untrust.hs b/Command/Untrust.hs index cde1eee93..4c1035dcd 100644 --- a/Command/Untrust.hs +++ b/Command/Untrust.hs @@ -7,26 +7,13 @@ module Command.Untrust where -import Common.Annex import Command -import qualified Remote -import Logs.Trust +import Types.TrustLevel +import Command.Trust (trustCommand) def :: [Command] def = [command "untrust" (paramRepeating paramRemote) seek SectionSetup "do not trust a repository"] seek :: CommandSeek -seek = withWords start - -start :: [String] -> CommandStart -start ws = do - let name = unwords ws - showStart "untrust" name - u <- Remote.nameToUUID name - next $ perform u - -perform :: UUID -> CommandPerform -perform uuid = do - trustSet uuid UnTrusted - next $ return True +seek = trustCommand "untrust" UnTrusted |