Add OpenClaw skills, platform kit, and template docs
Made-with: Cursor
This commit is contained in:
24
content-manager/scripts/main.py
Normal file
24
content-manager/scripts/main.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""content-manager CLI 入口;逻辑在 content_manager 包内分层实现。"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Windows GBK 下控制台 UTF-8 输出
|
||||
if sys.platform == "win32":
|
||||
import io
|
||||
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
|
||||
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8", errors="replace")
|
||||
|
||||
_SKILL_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if _SKILL_ROOT not in sys.path:
|
||||
sys.path.insert(0, _SKILL_ROOT)
|
||||
|
||||
from content_manager.cli.app import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user