projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
84b41f5
)
Merge pull request #70 from polarkac/show_version
author
Orakaro
<DTVD@users.noreply.github.com>
Thu, 23 Oct 2014 02:15:17 +0000
(11:15 +0900)
committer
Orakaro
<DTVD@users.noreply.github.com>
Thu, 23 Oct 2014 02:15:17 +0000
(11:15 +0900)
Show version
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 2b8a456571c676bbd477b1dee2d4a16ddf41171f..284a6282971d54ca320c76968830f530b43f8e04 100644
(file)
--- 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 running 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,
]
@@
-1903,6
+1907,7
@@
def listen():
[], # reconnect
[], # clear
[], # quit
+ [], # version
]
))
init_interactive_shell(d)