diff options
author | Joey Hess <joey@kitenet.net> | 2011-11-11 01:52:58 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-11-11 01:52:58 -0400 |
commit | 637b5feb45013f69f3aacbafeb796de666d3faa3 (patch) | |
tree | 17e5506c3715be46318d15dd76ec474641faffe2 /Command.hs | |
parent | b327227ba596d4fc5012138d03390c3eb861b808 (diff) |
lint
Diffstat (limited to 'Command.hs')
-rw-r--r-- | Command.hs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Command.hs b/Command.hs index 083be37f2..d22c2d12f 100644 --- a/Command.hs +++ b/Command.hs @@ -6,10 +6,6 @@ -} module Command ( - module Types.Command, - module Seek, - module Checks, - module Options, command, next, stop, @@ -19,20 +15,21 @@ module Command ( notAnnexed, notBareRepo, isBareRepo, - autoCopies + autoCopies, + module ReExported ) where import Common.Annex import qualified Backend import qualified Annex import qualified Git -import Types.Command +import Types.Command as ReExported +import Seek as ReExported +import Checks as ReExported +import Options as ReExported import Logs.Trust import Logs.Location import Config -import Seek -import Checks -import Options {- Generates a command with the common checks. -} command :: String -> String -> [CommandSeek] -> String -> Command @@ -50,7 +47,7 @@ stop = return Nothing - list of actions to perform to run the command. -} prepCommand :: Command -> [String] -> Annex [CommandCleanup] prepCommand Command { cmdseek = seek, cmdcheck = c } params = do - sequence_ $ map runCheck c + mapM_ runCheck c map doCommand . concat <$> mapM (\s -> s params) seek {- Runs a command through the start, perform and cleanup stages -} |