ai_xiaopei
9 days ago 4cd5499d60a851a59723067e74a4a92f7254b8e9
cmd/draft.go
@@ -18,14 +18,8 @@
var draftCreateCmd = &cobra.Command{
   Use:   "create",
   Short: "创建草稿",
   Long: `kb-cli draft create --type <类型> --title <标题> --content-file <内容文件> [--source <来源>] [--force]
创建草稿,自动提取 tags 并生成合并指示。
类型: 售后/产品/运营/行业/TAPD
示例:
  kb-cli draft create --type 售后 --title "充不进气问题" --content-file /tmp/draft.md
  kb-cli draft create --type TAPD --title "档案下载失败" --content-file /tmp/bug.md --source "TAPD#12345"`,
   Long:  `# draft create - 创建草稿
kb-cli draft create --type <类型> --title <标题> --content-file <文件> [--source <来源>] [--force] # 创建草稿,自动提取 tags 并生成合并指示`,
   RunE: runDraftCreate,
}
@@ -38,13 +32,8 @@
var tagsRebuildCmd = &cobra.Command{
   Use:   "rebuild",
   Short: "批量重建 tags",
   Long: `kb-cli tags rebuild [--vault <路径>] [--limit <数量>] [--dry-run]
批量重建现有文档的 tags,使用 LLM 重新提取。
示例:
  kb-cli tags rebuild --limit 10           # 重建前 10 个文档的 tags
  kb-cli tags rebuild --dry-run            # 仅预览,不实际更新`,
   Long:  `# tags rebuild - 批量重建 tags
kb-cli tags rebuild [--vault <路径>] [--limit <数量>] [--dry-run] # 使用 LLM 重新提取现有文档的 tags`,
   RunE: runTagsRebuild,
}