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 2b8a456571c676bbd477b1dee2d4a16ddf41171f..14e469ed093944efb353d01b31f32044dc79a46b 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,
 ]