22 lines
482 B
Haskell
22 lines
482 B
Haskell
{- git-annex main program
|
|
-
|
|
- Copyright 2010 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
import System.Environment
|
|
|
|
import qualified Annex
|
|
import Core
|
|
import CmdLine
|
|
import qualified GitRepo as Git
|
|
import BackendList
|
|
|
|
main :: IO ()
|
|
main = do
|
|
args <- getArgs
|
|
gitrepo <- Git.repoFromCwd
|
|
state <- Annex.new gitrepo allBackends
|
|
(configure, actions) <- parseCmd args state
|
|
tryRun state $ [startup] ++ configure ++ actions ++ [shutdown]
|