From 1d2857ea8c24403a87c948a1941926637a0b45c7 Mon Sep 17 00:00:00 2001 From: "shital.rtcamp" Date: Thu, 22 Jan 2015 13:04:52 +0530 Subject: [PATCH] completed ee --version command --- ee/cli/controllers/base.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ee/cli/controllers/base.py b/ee/cli/controllers/base.py index 95118c6e..3c2354ab 100644 --- a/ee/cli/controllers/base.py +++ b/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):