项目文件夹

文件
wehub-resource-sync 8ef9db2513
Deploy to GitHub Pages / deploy (push) Has been cancelled
Deploy to GitHub Pages / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:56:49 +08:00

41 行
1.3 KiB
Python

#!/usr/bin/env python3
"""
PPT Master - Native Enhance PPTX Entrypoint
Public CLI wrapper for native enhancement of existing PPTX decks. V1 delegates
to the narration/timings implementation while keeping the stable command name
aligned with the native-enhance workflow.
Usage:
python3 scripts/native_enhance_pptx.py init <source.pptx> [--name project_name]
python3 scripts/native_enhance_pptx.py plan <project_path>
python3 scripts/native_enhance_pptx.py validate <project_path>
python3 scripts/native_enhance_pptx.py apply <project_path>
Examples:
python3 scripts/native_enhance_pptx.py init projects/source.pptx --name fire_station
python3 scripts/native_enhance_pptx.py plan projects/fire_station_native_enhance_20260626
python3 scripts/native_enhance_pptx.py apply projects/fire_station_native_enhance_20260626
Dependencies:
Same as native_narration_pptx.py.
"""
from __future__ import annotations
import sys
from pathlib import Path
_SCRIPTS_DIR = Path(__file__).resolve().parent
if str(_SCRIPTS_DIR) not in sys.path:
sys.path.insert(0, str(_SCRIPTS_DIR))
from console_encoding import configure_utf8_stdio # noqa: E402
from native_narration_pptx import main # noqa: E402
configure_utf8_stdio()
if __name__ == "__main__":
raise SystemExit(main())