move supportedBackends list into annex monad
This was necessary so the File backend could import Backend w/o a cycle. Moved code that checks whether enough backends have a file into File backend.
This commit is contained in:
parent
6bfa534aa4
commit
b471822cfe
7 changed files with 105 additions and 95 deletions
|
@ -9,11 +9,12 @@ import Types
|
|||
import Core
|
||||
import Commands
|
||||
import qualified GitRepo as Git
|
||||
import BackendList
|
||||
|
||||
main = do
|
||||
args <- getArgs
|
||||
gitrepo <- Git.repoFromCwd
|
||||
state <- Annex.new gitrepo
|
||||
state <- Annex.new gitrepo allBackends
|
||||
(flags, actions) <- parseCmd args state
|
||||
tryRun state $ [startup flags] ++ actions ++ [shutdown]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue