summaryrefslogtreecommitdiff
path: root/CmdLine.hs
diff options
context:
space:
mode:
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs12
1 files changed, 8 insertions, 4 deletions
diff --git a/CmdLine.hs b/CmdLine.hs
index cc8708889..60ba81d30 100644
--- a/CmdLine.hs
+++ b/CmdLine.hs
@@ -39,8 +39,12 @@ argvToMode argv = do
where header = "Usage: git-annex [mode] file"
dispatch :: State -> Mode -> FilePath -> IO ()
-dispatch state mode file = do
+dispatch state mode item = do
case (mode) of
- Add -> annexFile state file
- Unannex -> unannexFile state file
- _ -> error "not implemented"
+ Add -> annexFile state item
+ Push -> annexPushRepo state item
+ Pull -> annexPullRepo state item
+ Want -> annexWantFile state item
+ Get -> annexGetFile state item
+ Drop -> annexDropFile state item
+ Unannex -> unannexFile state item