Skip to content

Commit 237534c

Browse files
authored
Update the startup progress information display (#812)
1 parent b525124 commit 237534c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515

1616
with Progress(
1717
SpinnerColumn(finished_text=f'[bold green]{_log_prefix}插件准备就绪[/]'),
18+
TextColumn('{task.description}'),
1819
TextColumn('{task.completed}/{task.total}', style='bold green'),
1920
TimeElapsedColumn(),
2021
console=console,
2122
) as progress:
2223
task = progress.add_task('安装插件依赖...', total=len(_plugins))
2324
for plugin in _plugins:
25+
progress.update(task, description=f'[bold magenta]安装插件 {plugin} 依赖...[/]')
2426
install_requirements(plugin)
2527
progress.advance(task)
28+
progress.update(task, description='[bold green]-[/]')
2629

2730
console.print(Text(f'{_log_prefix}启动服务...', style='bold magenta'))
2831

0 commit comments

Comments
 (0)