# built documents.
#
# The short X.Y version.
-version = '0.6.1'
+version = '0.6.2'
# The full version, including alpha/beta/rc tags.
-release = '0.6.1'
+release = '0.6.2'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
g['stream_stop'] = True
args.track_keywords = keyword
# Start new thread
- th = threading.Thread(target=stream, args=(c['PUBLIC_DOMAIN'], args))
+ th = threading.Thread(
+ target=stream,
+ args=(
+ c['PUBLIC_DOMAIN'],
+ args))
th.daemon = True
th.start()
# Personal stream
# Kill old thread
g['stream_stop'] = True
# Start new thread
- th = threading.Thread(target=stream, args=(c['USER_DOMAIN'], args, g['original_name']))
+ th = threading.Thread(
+ target=stream,
+ args=(
+ c['USER_DOMAIN'],
+ args,
+ g['original_name']))
th.daemon = True
th.start()
printNicely('')
set_config(key, value)
# Apply theme immediately
if key == 'THEME':
- c['THEME'] = reload_theme(value,c['THEME'])
+ c['THEME'] = reload_theme(value, c['THEME'])
g['decorated_name'] = lambda x: color_func(
c['DECORATED_NAME'])(
'[' + x + ']: ')
# Change theme
try:
# Load new theme
- c['THEME'] = reload_theme(g['stuff'],c['THEME'])
+ c['THEME'] = reload_theme(g['stuff'], c['THEME'])
# Redefine decorated_name
g['decorated_name'] = lambda x: color_func(
c['DECORATED_NAME'])(
'stream': help_stream,
}
if g['stuff']:
- d[g['stuff'].strip()]()
+ d.get(
+ g['stuff'].strip(),
+ lambda: printNicely(red('No such command.'))
+ )()
else:
printNicely(usage)
save_history()
sys.exit()
# Spawn stream thread
- th = threading.Thread(target=stream, args=(c['USER_DOMAIN'], args, g['original_name']))
+ th = threading.Thread(
+ target=stream,
+ args=(
+ c['USER_DOMAIN'],
+ args,
+ g['original_name']))
th.daemon = True
th.start()
# Start listen process