2014-04-06 23:06:03 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2014 Joey Hess <id@joeyh.name>
|
2014-04-06 23:06:03 +00:00
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.RemoteDaemon where
|
|
|
|
|
|
|
|
import Command
|
|
|
|
import RemoteDaemon.Core
|
|
|
|
|
2015-07-08 16:33:27 +00:00
|
|
|
cmd :: Command
|
2015-07-08 19:08:02 +00:00
|
|
|
cmd = noCommit $
|
|
|
|
command "remotedaemon" SectionPlumbing
|
|
|
|
"detects when remotes have changed, and fetches from them"
|
|
|
|
paramNothing (withParams seek)
|
2014-04-06 23:06:03 +00:00
|
|
|
|
2015-07-08 19:08:02 +00:00
|
|
|
seek :: CmdParams -> CommandSeek
|
2014-04-06 23:06:03 +00:00
|
|
|
seek = withNothing start
|
|
|
|
|
|
|
|
start :: CommandStart
|
|
|
|
start = do
|
|
|
|
liftIO runForeground
|
|
|
|
stop
|