feat(docs): put-txt preserves line breaks in DOCX

TxtToMarkdown uses markdown hard breaks so pandoc keeps each source
line on its own row. Adds oo docs put-txt and projects files alias.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 09:57:55 +01:00
co-authored by Cursor
parent ff2bc539f5
commit 309ae44ee4
5 changed files with 179 additions and 2 deletions
+8
View File
@@ -28,6 +28,7 @@ func projectFilesCmd() *cobra.Command {
// Convenience aliases into oo docs (md↔docx / OCR pipeline).
cmd.AddCommand(aliasDocsAsMD())
cmd.AddCommand(aliasDocsPutMD())
cmd.AddCommand(aliasDocsPutTxt())
return cmd
}
@@ -45,6 +46,13 @@ func aliasDocsPutMD() *cobra.Command {
return c
}
func aliasDocsPutTxt() *cobra.Command {
c := docsPutTxtCmd()
c.Use = "put-txt PROJECT_ID TEXT_PATH"
c.Short = "Alias of `oo docs put-txt` — plain text→DOCX upload into project"
return c
}
func prjFilesListCmd() *cobra.Command {
var showFolders bool
cmd := &cobra.Command{