release: v3.6.0-release 发行版
- 默认 TUI 模式,--cli 切换命令行 - TUI 不可用时自动降级到 CLI - 新增 CHANGELOG.md - 更新版本号和 about.txt 本次更新由 mimo 自动化执行,与开发者无关。
This commit is contained in:
1 parent
a437a2f1dd
commit
bfedee5616
5 files changed
+56
-5
No files matched your search
@@ -26,6 +26,16 @@ def main():
|
||||
# 启动动画
|
||||
_show_art()
|
||||
|
||||
# 检查 Textual 可用性
|
||||
if not args.cli:
|
||||
try:
|
||||
from textual.app import App
|
||||
except ImportError:
|
||||
if not args.cli:
|
||||
print("⚠️ Textual 未安装,自动切换到命令行模式")
|
||||
print(" 安装 TUI: pip install textual")
|
||||
args.cli = True
|
||||
|
||||
from xiaoli.app import App
|
||||
app = App()
|
||||
|
||||
|
||||
Reference in new issue
Block a user