Skip to content

Commit

Permalink
[playframework#1009] Add play version command
Browse files Browse the repository at this point in the history
  • Loading branch information
tkral authored and erwan committed Aug 4, 2011
1 parent f276210 commit 05ed5fc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions documentation/commands/cmd-version.txt
@@ -0,0 +1,12 @@
~ Name:
~ ~~~~~
~ version -- Print the framework version
~
~ Synopsis:
~ ~~~~~~~~~
~ play version
~
~ Description:
~ ~~~~~~~~~~~~
~ Prints the version of the Play framework currently being used.
~
14 changes: 14 additions & 0 deletions framework/pym/play/commands/version.py
@@ -0,0 +1,14 @@

COMMANDS = ['version']

HELP = {
'version': 'Print the framework version'
}

def execute(**kargs):
env = kargs.get("env")
showLogo = kargs.get("showLogo")

# If we've shown the logo, then the version has already been printed
if not showLogo:
print env["version"]

0 comments on commit 05ed5fc

Please sign in to comment.