You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

10 years ago
"""EasyEngine site controller."""
from cement.core.controller import CementBaseController, expose
from ee.core.dummy import EEDummy
10 years ago
class EESiteController(CementBaseController):
class Meta:
label = 'site'
stacked_on = 'base'
stacked_type = 'nested'
10 years ago
description = 'site command manages website configuration with the help of the following subcommands'
arguments = [
10 years ago
(['-f', '--foo'],
dict(help='the notorious foo option', dest='foo', action='store',
metavar='TEXT') ),
]
@expose(hide=True)
def default(self):
10 years ago
# Default action for ee site command
print("Inside EESiteController.default().")
EEDummy.dummy()
10 years ago
10 years ago
# site command Options and subcommand calls and definations to
# mention here
10 years ago
# If using an output handler such as 'mustache', you could also
# render a data dictionary using a template. For example:
#
# data = dict(foo='bar')
# self.app.render(data, 'default.mustache')
#
#
# The 'default.mustache' file would be loaded from
# ``ee.cli.templates``, or ``/var/lib/ee/templates/``.
#