Browse Source

completed ee --version command

bugfixes
shital.rtcamp 10 years ago
parent
commit
1d2857ea8c
  1. 10
      ee/cli/controllers/base.py

10
ee/cli/controllers/base.py

@ -1,6 +1,13 @@
"""EasyEngine base controller."""
from cement.core.controller import CementBaseController, expose
from ee.core.variables import EEVariables
VERSION = EEVariables.ee_version
BANNER = """
EasyEngine v%s
Copyright (c) 2015 rtCamp Solutions Pvt. Ltd.
""" % VERSION
class EEBaseController(CementBaseController):
@ -9,6 +16,9 @@ class EEBaseController(CementBaseController):
description = ("EasyEngine is the commandline tool to manage your"
" websites based on WordPress and Nginx with easy to"
" use commands")
arguments = [
(['-v', '--version'], dict(action='version', version=BANNER)),
]
@expose(hide=True)
def default(self):

Loading…
Cancel
Save