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 Common.Annex
|
|
|
|
import Command
|
|
|
|
import RemoteDaemon.Core
|
|
|
|
|
2014-10-14 18:20:10 +00:00
|
|
|
cmd :: [Command]
|
|
|
|
cmd = [noCommit $ command "remotedaemon" paramNothing seek SectionPlumbing
|
2014-04-06 23:06:03 +00:00
|
|
|
"detects when remotes have changed, and fetches from them"]
|
|
|
|
|
|
|
|
seek :: CommandSeek
|
|
|
|
seek = withNothing start
|
|
|
|
|
|
|
|
start :: CommandStart
|
|
|
|
start = do
|
|
|
|
liftIO runForeground
|
|
|
|
stop
|