git-annex/Command/Upgrade.hs

28 lines
626 B
Haskell
Raw Normal View History

2011-03-16 15:48:26 -04:00
{- git-annex command
-
- Copyright 2011 Joey Hess <id@joeyh.name>
2011-03-16 15:48:26 -04:00
-
- 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
2015-12-15 15:34:28 -04:00
noDaemonRunning $ -- avoid upgrading repo out from under daemon
command "upgrade" SectionMaintenance "upgrade repository layout"
paramNothing (withParams seek)
2011-03-16 15:48:26 -04:00
seek :: CmdParams -> 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