aboutsummaryrefslogtreecommitdiff
path: root/Command/Assistant.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-22 13:04:03 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-22 13:04:03 -0400
commit3ee44cf8feb11fc439c02eb0eb8f12d290b01120 (patch)
tree41f68e6ad947af83134ad967442cc77e199c70f9 /Command/Assistant.hs
parentcf9bf920e8052edbcee9dd31bfb1c9b421296d14 (diff)
add assistant command
like watch, but more magic
Diffstat (limited to 'Command/Assistant.hs')
-rw-r--r--Command/Assistant.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Command/Assistant.hs b/Command/Assistant.hs
new file mode 100644
index 000000000..60eac5d21
--- /dev/null
+++ b/Command/Assistant.hs
@@ -0,0 +1,18 @@
+{- git-annex assistant
+ -
+ - Copyright 2012 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+module Command.Assistant where
+
+import Command
+import qualified Command.Watch
+
+def :: [Command]
+def = [withOptions [Command.Watch.foregroundOption, Command.Watch.stopOption] $
+ command "assistant" paramNothing seek "automatically handle changes"]
+
+seek :: [CommandSeek]
+seek = Command.Watch.mkSeek True