20 lines
459 B
Python
20 lines
459 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
WeWrite Skill for nanobot
|
|
微信公众号文章全流程助手
|
|
|
|
使用方法:
|
|
nanobot wewrite write --client nanobot --topic "AI技术"
|
|
nanobot wewrite preview article.md --theme tech-modern
|
|
nanobot wewrite publish article.md --title "标题"
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
# 添加 wewrite 目录到路径
|
|
sys.path.insert(0, "/home/ubuntu/wewrite")
|
|
|
|
# 导入主 CLI
|
|
exec(open("/home/ubuntu/wewrite/wewrite_cli.py").read())
|