Commad to show current version
authorLukas Pohlreich <pohlreichlukas@gmail.com>
Wed, 22 Oct 2014 09:21:02 +0000 (11:21 +0200)
committerLukas Pohlreich <pohlreichlukas@gmail.com>
Wed, 22 Oct 2014 09:21:02 +0000 (11:21 +0200)
rainbowstream/rainbow.py

index 2b8a456..14e469e 100644 (file)
@@ -178,6 +178,8 @@ def upgrade_center():
             notice += light_magenta('You should upgrade with ')
             notice += light_green('pip install -U rainbowstream')
             printNicely(notice)
+        else:
+            printNicely(yellow('You are runnig latest ' + current + ' version.'))
     except:
         pass
 
@@ -1778,7 +1780,8 @@ cmdset = [
     'p',
     'r',
     'c',
-    'q'
+    'q',
+    'version',
 ]
 
 # Handle function set
@@ -1824,7 +1827,8 @@ funcset = [
     pause,
     replay,
     clear,
-    quit
+    quit,
+    upgrade_center,
 ]