git-annex/Command/Upgrade.hs

27 lines
542 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
2011-10-05 16:02:51 -04:00
import Common.Annex
2011-03-16 15:48:26 -04:00
import Command
2011-03-19 18:58:10 -04:00
import Upgrade
2011-03-16 15:48:26 -04:00
cmd :: [Command]
cmd = [dontCheck repoExists $ -- because an old version may not seem to exist
command "upgrade" paramNothing seek
SectionMaintenance "upgrade repository layout"]
2011-03-16 15:48:26 -04:00
seek :: CommandSeek
seek = withNothing start
2011-03-16 15:48:26 -04:00
start :: CommandStart
2011-03-16 15:48:26 -04:00
start = do
showStart "upgrade" "."
r <- upgrade False
2011-05-15 02:02:46 -04:00
next $ next $ return r