summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/WebApp.hs13
-rw-r--r--doc/git-annex.mdwn4
2 files changed, 6 insertions, 11 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs
index 20b914b7a..f143d8667 100644
--- a/Command/WebApp.hs
+++ b/Command/WebApp.hs
@@ -16,7 +16,6 @@ import Assistant.Threads.WebApp
import Utility.WebApp
import Utility.Daemon (checkDaemon, lockPidFile)
import Init
-import qualified Command.Watch
import qualified Git.CurrentRepo
import qualified Annex
@@ -25,18 +24,14 @@ import Control.Concurrent.STM
def :: [Command]
def = [oneShot $ noRepo firstRun $ dontCheck repoExists $
- withOptions [Command.Watch.stopOption] $
command "webapp" paramNothing seek "launch webapp"]
seek :: [CommandSeek]
-seek = [withFlag Command.Watch.stopOption $ \stopdaemon ->
- withNothing $ start stopdaemon]
+seek = [withNothing start]
-start :: Bool -> CommandStart
-start stopdaemon = notBareRepo $ do
- if stopdaemon
- then stopDaemon
- else ifM (isInitialized) ( go , liftIO firstRun )
+start :: CommandStart
+start = notBareRepo $ do
+ ifM (isInitialized) ( go , liftIO firstRun )
stop
where
go = do
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 282b1fda5..0a6df035b 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -192,8 +192,8 @@ subdirectories).
* webapp
- Opens a web browser, viewing the git-annex assistant's web app.
- (If the assistant is not already running, it will be automatically started.)
+ Runs a web app, that allows easy setup of a git-annex repository,
+ and control of the git-annex assistant.
# REPOSITORY SETUP COMMANDS