git-annex/Command/Upgrade.hs

28 lines
497 B
Haskell
Raw Normal View History

2011-03-16 15:48:26 -04:00
{- git-annex command
-
- Copyright 2011 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.Upgrade where
import Command
2011-03-19 18:58:10 -04:00
import Upgrade
import Version
2011-03-21 20:46:43 -04:00
import Messages
2011-03-16 15:48:26 -04:00
command :: [Command]
2011-03-19 18:58:10 -04:00
command = [standaloneCommand "upgrade" paramNothing seek
"upgrade repository layout"]
2011-03-16 15:48:26 -04:00
seek :: [CommandSeek]
seek = [withNothing start]
start :: CommandStartNothing
start = do
2011-03-21 20:46:43 -04:00
showStart "upgrade" ""
2011-03-19 18:58:10 -04:00
r <- upgrade
checkVersion
2011-05-15 02:02:46 -04:00
next $ next $ return r