fix:优化一些BUG

This commit is contained in:
2025-12-11 21:42:01 +08:00
parent ed4b324dba
commit 3e811665b3
7 changed files with 19 additions and 30 deletions

View File

@@ -1,3 +1,4 @@
from config.config import load_config
from utils.generate_utils import (
generate_template,
generate_comment_all,
@@ -7,6 +8,8 @@ from utils.generate_utils import (
)
from utils.file_utils import export_templates_folder, initialize_project, export_data
config = load_config("config.yaml")
def application():
from rich.console import Console
@@ -56,7 +59,7 @@ def application():
choice = Prompt.ask(
"👉 请输入序号执行",
choices=["1", "2", "3", "4", "5", "6", "7","8","9"],
choices=["1", "2", "3", "4", "5", "6", "7", "8", "9"],
default="1",
)
@@ -64,7 +67,7 @@ def application():
if choice == "1":
console.rule("[bold cyan]正在执行: 生成模板[/]")
with console.status(
"[bold green]正在创建文件夹结构...[/]", spinner="dots"
"[bold green]正在创建文件夹结构...[/]", spinner="dots"
):
generate_template()
elif choice == "2":
@@ -74,7 +77,7 @@ def application():
elif choice == "3":
console.rule("[bold blue]正在执行: PPT 合成[/]")
with console.status(
"[bold blue]正在处理图片和文字...[/]", spinner="earth"
"[bold blue]正在处理图片和文字...[/]", spinner="earth"
):
generate_report()
elif choice == "4":