add assistant command
like watch, but more magic
This commit is contained in:
parent
cf9bf920e8
commit
3ee44cf8fe
5 changed files with 36 additions and 12 deletions
|
@ -55,10 +55,10 @@ import Utility.LogFile
|
|||
|
||||
import Control.Concurrent
|
||||
|
||||
startDaemon :: Bool -> Annex ()
|
||||
startDaemon foreground
|
||||
startDaemon :: Bool -> Bool -> Annex ()
|
||||
startDaemon assistant foreground
|
||||
| foreground = do
|
||||
showStart "watch" "."
|
||||
showStart (if assistant then "assistant" else "watch") "."
|
||||
go id
|
||||
| otherwise = do
|
||||
logfd <- liftIO . openLog =<< fromRepo gitAnnexLogFile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue