`.brokers.cli`: module type and todo for `--pdb` flag to NOT src from sub-cmd

Tyler Goodlet 2025-02-13 12:29:43 -05:00
parent f8e05effbc
commit d4f1769d64
1 changed files with 6 additions and 2 deletions

View File

@ -471,11 +471,15 @@ def search(
'''
# global opts
brokermods = list(config['brokermods'].values())
brokermods: list[ModuleType] = list(config['brokermods'].values())
# TODO: this is coming from the `search --pdb` NOT from
# the `piker --pdb` XD ..
# -[ ] pull from the parent click ctx's values..dumdum
# assert pdb
# define tractor entrypoint
async def main(func):
async with maybe_open_pikerd(
loglevel=config['loglevel'],
debug_mode=pdb,