fix: template
This commit is contained in:
@@ -12,7 +12,7 @@ from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TaskPr
|
||||
from rich.live import Live
|
||||
import json
|
||||
|
||||
from python_core.services.template_manager import TemplateManager, TemplateInfo
|
||||
from python_core.services.template_manager_cloud import TemplateManagerCloud, TemplateInfo
|
||||
from python_core.utils.logger import logger
|
||||
|
||||
console = Console()
|
||||
@@ -42,7 +42,7 @@ def batch_import(
|
||||
raise typer.Exit(1)
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 进度回调函数
|
||||
progress_messages = []
|
||||
@@ -112,7 +112,7 @@ def list_templates(
|
||||
console.print(f"📋 [bold blue]模板列表[/bold blue]")
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 获取模板列表
|
||||
templates = manager.get_templates()
|
||||
@@ -211,7 +211,7 @@ def get_template(
|
||||
console.print(f"模板ID: {template_id}")
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 获取模板
|
||||
template = manager.get_template(template_id)
|
||||
@@ -301,7 +301,7 @@ def get_template_detail(
|
||||
console.print(f"模板ID: {template_id}")
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 获取模板详细信息
|
||||
detail = manager.get_template_detail(template_id)
|
||||
@@ -357,7 +357,7 @@ def delete_template(
|
||||
console.print(f"模板ID: {template_id}")
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 获取模板信息
|
||||
template = manager.get_template(template_id)
|
||||
@@ -397,7 +397,7 @@ def show_stats():
|
||||
console.print(f"📊 [bold blue]模板统计信息[/bold blue]")
|
||||
|
||||
# 创建模板管理器
|
||||
manager = TemplateManager()
|
||||
manager = TemplateManagerCloud()
|
||||
|
||||
# 获取所有模板
|
||||
templates = manager.get_templates()
|
||||
|
||||
Reference in New Issue
Block a user