Skip to content

feat(cli): po web / wechat 模块子命令 #3

Open

Description

@edwinjhlee

从 #1 拆出。核心 CLI(42 命令)已在分支 `x-cmd-261025-po-cli` 落地并跑通测试;本 issue 记录 web / wechat 两个模块。video → #4,word → #5,ppt → #6 已另行拆出。

待加命令(8 个)

模块 命令 依赖 备注
web(1) url2ebook pospider(懒加载) 上游参数名 `tile` 疑为 title 拼写错误,收录时保持透传
wechat(7) send_message / send_message_by_time / send_file / chat_by_keywords / group_send / receive_message / chat_robot PyOfficeRobot(Windows-only,需桌面微信) platforms=["win32"]

前置事项

参考

  • 注册表结构见 `office/cli/commands.py`;完整实现源出提交 e5dbc8a,可直接捡回
  • Windows-only 报错路径与 `--json` 行为见 `office/cli/main.py` dispatch(先平台守卫、后导入)
  • 边测试边实现:pytest 冒烟解析 + `.x-cmd/test.sh` real 模式产物校验

Activity

  1. edwinjhlee commented on Oct 25, 2026

    @edwinjhlee
    Author

    前置事项更新(office/init.py 已懒加载,见 #1 / 分支 c6463e2):

    • 补装 povideo / poocr 等依赖,使 import office 在 macOS/Linux 可用 → 不再需要:import office 零依赖;加入 video/web 命令时,其依赖(povideo/moviepy、pospider)只需在分发时可导入即可,与核心 CLI 互不影响
    • word/ppt/wechat 的 Windows 真实分发验证、video 的 BOOL 参数回归保留不变

    实现时参考 `office/cli/commands.py` 注册表 + 提交 e5dbc8a 的原始条目,边测试边实现(pytest 帮助冒烟解析,`.x-cmd/test.sh` real 模式做真实产物校验)。

  2. changed the title [-]feat(cli): 二批非核心模块的 po 子命令(video / web / word / ppt / wechat)[/-] [+]feat(cli): po web / wechat 模块子命令[/+] on Oct 25, 2026
  3. edwinjhlee commented on Oct 25, 2026

    @edwinjhlee
    Author

    范围更新:video / word / ppt 已分别拆至 #4 / #5 / #6;本 issue 保留 web / wechat。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions