Add status around module initialization
This commit is contained in:
parent
55d12fdf59
commit
ffe3ae76bb
|
@ -29,14 +29,18 @@ def _login_out(ctx: click.Context, login: bool):
|
|||
prompts = config["inni"]["prompts"]
|
||||
modules = {}
|
||||
|
||||
with console.status("") as status:
|
||||
for module_name in module_names:
|
||||
status.update(f"[green]Initializing {module_name}")
|
||||
try:
|
||||
module = load_module(module_name)
|
||||
module_config = config["modules"].get(module_name, {})
|
||||
modules[module_name] = module(module_config)
|
||||
modules[module_name] = module(module_config, console, error_console)
|
||||
except ModuleNotFoundError as err:
|
||||
error_console.print(err.msg)
|
||||
sys.exit(0)
|
||||
console.print("[green]✅ Initialized Modules")
|
||||
console.print("")
|
||||
|
||||
variables_to_prompt = []
|
||||
for module in modules.values():
|
||||
|
|
Loading…
Reference in New Issue