From bf766c7b94931dc3d0f32ecb6aea79208a6e412a Mon Sep 17 00:00:00 2001 From: Lukas Pohlreich Date: Wed, 22 Oct 2014 11:21:02 +0200 Subject: [PATCH] Commad to show current version --- rainbowstream/rainbow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 2b8a456..14e469e 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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, ] -- 2.25.1