summaryrefslogtreecommitdiff
path: root/Command/XMPPGit.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-11-06 00:52:35 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-11-06 00:59:20 -0400
commit244c675db0b59c260ac93d4a96a6be2b40f148e5 (patch)
tree48d950e78b4623f5b72941dc558e2ee386568f28 /Command/XMPPGit.hs
parent97dec88eab69d0bf3d806bb1f4adf54c1b345f77 (diff)
add xmppgit command; roughed out xmpp push protocol and design
Diffstat (limited to 'Command/XMPPGit.hs')
-rw-r--r--Command/XMPPGit.hs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Command/XMPPGit.hs b/Command/XMPPGit.hs
new file mode 100644
index 000000000..ca7058c12
--- /dev/null
+++ b/Command/XMPPGit.hs
@@ -0,0 +1,24 @@
+{- git-annex command
+ -
+ - Copyright 2012 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+module Command.XMPPGit where
+
+import Common.Annex
+import Command
+import Assistant.XMPP.Git
+
+def :: [Command]
+def = [noCommit $ noRepo xmppGitRelay $ dontCheck repoExists $
+ command "xmppgit" paramNothing seek "git to XMPP relay (internal use)"]
+
+seek :: [CommandSeek]
+seek = [withWords start]
+
+start :: [String] -> CommandStart
+start _ = do
+ liftIO xmppGitRelay
+ stop