diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
commit | 6a5be9d53cad9ee2988c6d54001f387dfe1f2716 (patch) | |
tree | bae7346474d2ae932b856f1d70a0fca187ca6454 /Command/Init.hs | |
parent | 14d59b40fb4f3a4c9a89266fecae91a0daf08088 (diff) |
rename some stuff and prepare to break out more into Command/*
Diffstat (limited to 'Command/Init.hs')
-rw-r--r-- | Command/Init.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Command/Init.hs b/Command/Init.hs index e19849ba3..806c34c98 100644 --- a/Command/Init.hs +++ b/Command/Init.hs @@ -20,18 +20,18 @@ import Messages import Locations import Types -seek :: [SubCmdSeek] +seek :: [CommandSeek] seek = [withString start] {- Stores description for the repository etc. -} -start :: SubCmdStartString +start :: CommandStartString start description = do when (null description) $ error "please specify a description of this repository\n" showStart "init" description return $ Just $ perform description -perform :: String -> SubCmdPerform +perform :: String -> CommandPerform perform description = do g <- Annex.gitRepo u <- getUUID g @@ -41,7 +41,7 @@ perform description = do gitPreCommitHookWrite g return $ Just cleanup -cleanup :: SubCmdCleanup +cleanup :: CommandCleanup cleanup = do g <- Annex.gitRepo logfile <- uuidLog |