Permalink
Browse files

[#1009] Add play version command

  • Loading branch information...
1 parent f276210 commit 05ed5fc8622888dffd27778c08d66e2ce50a1c68 @tkral tkral committed with erwan Aug 3, 2011
Showing with 26 additions and 0 deletions.
  1. +12 −0 documentation/commands/cmd-version.txt
  2. +14 −0 framework/pym/play/commands/version.py
@@ -0,0 +1,12 @@
+~ Name:
+~ ~~~~~
+~ version -- Print the framework version
+~
+~ Synopsis:
+~ ~~~~~~~~~
+~ play version
+~
+~ Description:
+~ ~~~~~~~~~~~~
+~ Prints the version of the Play framework currently being used.
+~
@@ -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.