# Path: wikked/commands/base.py
# class WikkedCommand(object):
#     def __init__(self):
#         self.name = None
#         self.description = None
#         self.requires_wiki = True
# 
#     def setupParser(self, parser):
#         raise NotImplementedError()
# 
#     def run(self, ctx):
#         raise NotImplementedError()
# 
#     def _doRun(self, ctx):
#         if ctx.wiki is None and self.requires_wiki:
#             raise Exception("No wiki found here.")
#         result = self.run(ctx)
#         if result is None:
#             result = 0
#         return result
# 
# def register_command(cls):
#     command_classes.append(cls)
#     return cls


import os
import os.path
import imp
import logging
        import wikked.settings
from wikked.commands.base import WikkedCommand, register_command
        from wikked.web import app
        from wikked.tasks import celery_app
        self.name = 'runserver'
        self.description = ("Runs the wiki in a local web server.")

    def setupParser(self, parser):
        parser.add_argument(
                '--host',
                help="The host to use",
                default='127.0.0.1')
        parser.add_argument(
                '--port',
                help="The port to use",
                default=5000)
        parser.add_argument(
                '--usetasks',
                help="Use background tasks for updating the wiki after a "
                     "page has been edited. You will have to run "
                     "`wk runtasks` at the same time as `wk runserver`.",
                action='store_true')
        parser.add_argument(
                '-d', '--dev',
                help="Use development mode. "
                     "This makes Wikked use code reloading and debugging.",
                action='store_true')
        parser.add_argument(
                '--no-update',
                help="Don't auto-update the wiki if a page file has been "
                     "touched (which means you won't be able to refresh a "
                     "locally modified page with F5)",
                action='store_true')
        parser.add_argument(

# Path: wikked/commands/base.py
# class WikkedCommand(object):
#     def __init__(self):
#         self.name = None
#         self.description = None
#         self.requires_wiki = True
# 
#     def setupParser(self, parser):
#         raise NotImplementedError()
# 
#     def run(self, ctx):
#         raise NotImplementedError()
# 
#     def _doRun(self, ctx):
#         if ctx.wiki is None and self.requires_wiki:
#             raise Exception("No wiki found here.")
#         result = self.run(ctx)
#         if result is None:
#             result = 0
#         return result
# 
# def register_command(cls):
#     command_classes.append(cls)
#     return cls


# Path: wikked/commands/web.py
import os
import os.path
import imp
import logging
        import wikked.settings
from wikked.commands.base import WikkedCommand, register_command
        from wikked.web import app
        from wikked.tasks import celery_app

        self.name = 'runserver'
        self.description = ("Runs the wiki in a local web server.")

    def setupParser(self, parser):
        parser.add_argument(
                '--host',
                help="The host to use",
                default='127.0.0.1')
        parser.add_argument(
                '--port',
                help="The port to use",
                default=5000)
        parser.add_argument(
                '--usetasks',
                help="Use background tasks for updating the wiki after a "
                     "page has been edited. You will have to run "
                     "`wk runtasks` at the same time as `wk runserver`.",
                action='store_true')
        parser.add_argument(
                '-d', '--dev',
                help="Use development mode. "
                     "This makes Wikked use code reloading and debugging.",
                action='store_true')
        parser.add_argument(
                '--no-update',
                help="Don't auto-update the wiki if a page file has been "
                     "touched (which means you won't be able to refresh a "
                     "locally modified page with F5)",
                action='store_true')
        parser.add_argument(

                '--no-startup-update',