'rename_transform',
'list_commands',
'run_server',
- 'generate_entities'
+ 'generate_entities',
+ 'version',
+ 'banner'
]
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env python
+
+from common import get_commands, cmd_name
+from argparse import ArgumentParser
+from sys import modules
+
+import canari
+
+
+__author__ = 'Nadeem Douba'
+__copyright__ = 'Copyright 2012, Canari Project'
+__credits__ = []
+
+__license__ = 'GPL'
+__version__ = '0.1'
+__maintainer__ = 'Nadeem Douba'
+__email__ = 'ndouba@gmail.com'
+__status__ = 'Development'
+
+
+parser = ArgumentParser(
+ description='Show banner of Canari framework that is currently active.',
+ usage='canari %s' % cmd_name(__name__)
+)
+
+
+def help():
+ parser.print_help()
+
+
+def description():
+ return parser.description
+
+
+def run(args):
+ print """
+ Your running ...
+_________ _____ _______ _______
+__ ____/_____ _____________ __________(_) ___ ___ __ \ __( __ )
+_ / _ __ `/_ __ \ __ `/_ ___/_ / __ | / / / / / _ __ |
+/ /___ / /_/ /_ / / / /_/ /_ / _ / __ |/ // /_/ /__/ /_/ /
+\____/ \__,_/ /_/ /_/\__,_/ /_/ /_/ _____/ \____/_(_)____/
+
+ ... http://canariproject.com
+ """
\ No newline at end of file
#!/usr/bin/env python
-import os
-import subprocess
-import sys
-import unicodedata
-from canari.utils.fs import fmutex
-
+from distutils.command.install import install
from pkg_resources import resource_filename
from distutils.dist import Distribution
-from distutils.command.install import install
from datetime import datetime
from string import Template
+import unicodedata
+import subprocess
+import threading
+import sys
+import os
+
from canari.config import CanariConfigParser
-import threading
+__author__ = 'Nadeem Douba'
+__copyright__ = 'Copyright 2012, Canari Project'
+__credits__ = []
+
+__license__ = 'GPL'
+__version__ = '0.3'
+__maintainer__ = 'Nadeem Douba'
+__email__ = 'ndouba@gmail.com'
+__status__ = 'Development'
+
def synchronized(func):
return synced_func
-__author__ = 'Nadeem Douba'
-__copyright__ = 'Copyright 2012, Canari Project'
-__credits__ = []
-
-__license__ = 'GPL'
-__version__ = '0.2'
-__maintainer__ = 'Nadeem Douba'
-__email__ = 'ndouba@gmail.com'
-__status__ = 'Development'
def fix_etree():
try:
#!/usr/bin/env python
-from common import read_template, write_template, generate_all, build_skeleton, cmd_name, parse_bool
-
from argparse import ArgumentParser
from datetime import datetime
from getpass import getuser
from os import path
+from common import read_template, write_template, generate_all, build_skeleton, cmd_name, parse_bool
+import canari
+
__author__ = 'Nadeem Douba'
__copyright__ = 'Copyright 2012, Canari Project'
__credits__ = []
__license__ = 'GPL'
-__version__ = '0.5'
+__version__ = '0.6'
__maintainer__ = 'Nadeem Douba'
__email__ = 'ndouba@gmail.com'
__status__ = 'Development'
'maintainer' : getuser(),
'example' : True,
'description' : '',
- 'canari_version' : __version__
+ 'canari_version' : canari.__version__
}
ask_user(values)
--- /dev/null
+#!/usr/bin/env python
+
+from common import get_commands, cmd_name
+from argparse import ArgumentParser
+from sys import modules
+
+import canari
+
+
+__author__ = 'Nadeem Douba'
+__copyright__ = 'Copyright 2012, Canari Project'
+__credits__ = []
+
+__license__ = 'GPL'
+__version__ = '0.1'
+__maintainer__ = 'Nadeem Douba'
+__email__ = 'ndouba@gmail.com'
+__status__ = 'Development'
+
+
+parser = ArgumentParser(
+ description='Show version of Canari framework that is currently active.',
+ usage='canari %s' % cmd_name(__name__)
+)
+
+
+def help():
+ parser.print_help()
+
+
+def description():
+ return parser.description
+
+
+def run(args):
+ print 'Your running *Canari Framework v%s*' % canari.__version__
\ No newline at end of file