From 2349de831442b4631f9f16315f6a44beda9c43e5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 23 Aug 2018 23:12:39 -0400 Subject: [PATCH] Rename watchlist app to 'monitor' --- piker/cli.py | 4 ++-- piker/ui/{watchlist.py => monitor.py} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename piker/ui/{watchlist.py => monitor.py} (98%) diff --git a/piker/cli.py b/piker/cli.py index 4be0754a..b882c9b9 100644 --- a/piker/cli.py +++ b/piker/cli.py @@ -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) diff --git a/piker/ui/watchlist.py b/piker/ui/monitor.py similarity index 98% rename from piker/ui/watchlist.py rename to piker/ui/monitor.py index eb1cb3a1..55b5923a 100644 --- a/piker/ui/watchlist.py +++ b/piker/ui/monitor.py @@ -1,7 +1,7 @@ """ -A real-time, sorted watchlist. +monitor: a real-time, sorted watchlist. -Launch with ``piker watch ``. +Launch with ``piker monitor ``. (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)