Rename watchlist app to 'monitor'
parent
73b153b6fd
commit
2349de8314
|
@ -125,10 +125,10 @@ def quote(loglevel, broker, tickers, df_output):
|
|||
@click.option('--dhost', '-dh', default='127.0.0.1',
|
||||
help='Daemon host address to connect to')
|
||||
@click.argument('name', nargs=1, required=True)
|
||||
def watch(loglevel, broker, rate, name, dhost):
|
||||
def monitor(loglevel, broker, rate, name, dhost):
|
||||
"""Spawn a real-time watchlist.
|
||||
"""
|
||||
from .ui.watchlist import _async_main
|
||||
from .ui.monitor import _async_main
|
||||
log = get_console_log(loglevel) # activate console logging
|
||||
brokermod = get_brokermod(broker)
|
||||
watchlist_from_file = wl.ensure_watchlists(_watchlists_data_path)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
A real-time, sorted watchlist.
|
||||
monitor: a real-time, sorted watchlist.
|
||||
|
||||
Launch with ``piker watch <watchlist name>``.
|
||||
Launch with ``piker monitor <watchlist name>``.
|
||||
|
||||
(Currently there's a bunch of questrade specific stuff in here)
|
||||
"""
|
||||
|
@ -21,7 +21,7 @@ from kivy.core.window import Window
|
|||
from ..log import get_logger
|
||||
from .pager import PagerView
|
||||
|
||||
log = get_logger('watchlist')
|
||||
log = get_logger('monitor')
|
||||
|
||||
|
||||
_colors2hexs = {
|
||||
|
@ -405,7 +405,7 @@ async def _async_main(name, portal, tickers, brokermod, rate):
|
|||
return
|
||||
|
||||
# build out UI
|
||||
Window.set_title(f"watchlist: {name}\t(press ? for help)")
|
||||
Window.set_title(f"monitor: {name}\t(press ? for help)")
|
||||
Builder.load_string(_kv)
|
||||
box = BoxLayout(orientation='vertical', padding=5, spacing=5)
|
||||
|
Loading…
Reference in New Issue