diff --git a/ee/cli/bootstrap.py b/ee/cli/bootstrap.py index 86fd4047..8364e54f 100644 --- a/ee/cli/bootstrap.py +++ b/ee/cli/bootstrap.py @@ -5,6 +5,8 @@ from cement.core import handler from ee.cli.controllers.base import EEBaseController +from ee.cli.controllers.site import EESiteController def load(app): handler.register(EEBaseController) + handler.register(EESiteController) diff --git a/ee/cli/controllers/site.py b/ee/cli/controllers/site.py index 4c691110..277f69f2 100644 --- a/ee/cli/controllers/site.py +++ b/ee/cli/controllers/site.py @@ -5,10 +5,10 @@ from cement.core.controller import CementBaseController, expose class EESiteController(CementBaseController): class Meta: label = 'site' - interface = controller.IController stacked_on = 'base' stacked_type = 'nested' description = 'site command manges website configuration with the help of the following subcommands' + arguments = [ (['-f', '--foo'], dict(help='the notorious foo option', dest='foo', action='store', metavar='TEXT') ), @@ -16,7 +16,7 @@ class EESiteController(CementBaseController): @expose(hide=True) def default(self): - print "Inside EESiteController.default()." + print("Inside EESiteController.default().") # If using an output handler such as 'mustache', you could also # render a data dictionary using a template. For example: