From: Lukas Pohlreich Date: Wed, 22 Oct 2014 09:21:02 +0000 (+0200) Subject: Commad to show current version X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=bf766c7b94931dc3d0f32ecb6aea79208a6e412a Commad to show current version --- 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, ]