Manage the OnlyOffice Mail addon via oo mails using existing ONLYOFFICE_* creds, with automatic page fetching past the 25-message API cap and fromName/fromAddress columns. Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.3 KiB
Go
37 lines
1.3 KiB
Go
// Command oo is a thin CLI over the github.com/eslider/go-onlyoffice library.
|
|
//
|
|
// Command tree is subject-based (mirrors the library split and the `tea` CLI):
|
|
//
|
|
// oo calendar list | events | add | delete
|
|
// oo projects list | get | milestones | create | update | delete | files (list|upload|download|rename|delete)
|
|
// oo tasks list | get | create | update | delete | subtask add | files (list|upload|detach)
|
|
// oo users list | self (alias: oo whoami)
|
|
// oo contacts list | get | delete | info-add | dedupe-info
|
|
// oo persons list | create | delete | dedupe
|
|
// oo companies list | create | delete | dedupe | dedupe-persons
|
|
// oo opportunities list | get | create | delete | stages | member-add | dedupe | dedupe-members | fix-titles
|
|
// oo cases list | create | delete | member-add
|
|
// oo crm-tasks list | create | delete | categories
|
|
// oo crm cleanup
|
|
// oo mails accounts | folders | list | get | delete
|
|
// oo applications sync
|
|
//
|
|
// Every list supports `--output/-o json|table` (table is the default).
|
|
//
|
|
// Build & install:
|
|
//
|
|
// go install github.com/eslider/go-onlyoffice/cmd/oo@latest
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if err := execute(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|