add assistant command

like watch, but more magic
This commit is contained in:
Joey Hess 2012-06-22 13:04:03 -04:00
parent cf9bf920e8
commit 3ee44cf8fe
5 changed files with 36 additions and 12 deletions

18
Command/Assistant.hs Normal file
View file

@ -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