Skip to content

feat: add 'wenyan draft' subcommand (list/append/replace/update)#34

Open
dy2651 wants to merge 1 commit into
caol64:mainfrom
dy2651:feat-draft-manage
Open

feat: add 'wenyan draft' subcommand (list/append/replace/update)#34
dy2651 wants to merge 1 commit into
caol64:mainfrom
dy2651:feat-draft-manage

Conversation

@dy2651

@dy2651 dy2651 commented May 19, 2026

Copy link
Copy Markdown

Summary

Add a new wenyan draft subcommand for managing WeChat MP drafts. Supports both interactive and CLI modes.

List drafts

wenyan draft --list

Update title only

wenyan draft -u <mediaId> -t "New Title"

Append text to end

wenyan draft -u <mediaId> -a "text to append"

Search and replace

wenyan draft -u <mediaId> -s "old" -r "new"

Replace whole content with markdown file

wenyan draft -u <mediaId> -f article.md

Interactive mode (select draft + operation)

wenyan draft -i

Dependencies

Added @inquirer/select for interactive draft selection and operation picking.

Testing

All modes tested against a real WeChat MP account with 3 drafts.

@caol64 caol64 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新下文档

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants