#!/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())