chore: anonymize remaining CLI examples and hostnames

Keep public docs/help free of client names and fixed portal URLs.
This commit is contained in:
2026-08-10 00:13:52 +01:00
parent b58940fcf2
commit a0add3b771
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ ONLYOFFICE_PASS=
# ONLYOFFICE_NAME=
# ONLYOFFICE_PASSWORD=
#
# produktor.io operator aliases (CLI-only):
# Optional CLI-only aliases:
# OO_URL=
# OO_USER=
# OO_PASS=
+1 -1
View File
@@ -308,7 +308,7 @@ func personsFixNamesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "fix-names",
Short: "Strip company annotations from last names; keep companyId link",
Long: `Repairs CRM persons whose lastName embeds a company ("Thomsen (Acme)")
Long: `Repairs CRM persons whose lastName embeds a company ("Doe (Acme)")
or whose firstName is an email. Company belongs on companyId, not in the name.
With --company-id, only persons linked to that company are scanned.`,
+2 -1
View File
@@ -2,6 +2,7 @@ package main
import (
"fmt"
"os"
"strconv"
"strings"
@@ -274,7 +275,7 @@ Best regards`, number, cost)
return nil
}
fmt.Printf("draft %s to=%s subject=%q pdfFileId=%d\n", mid, to, subject, fileID)
fmt.Printf("open: https://office.example.com/addons/mail/#drafts\n")
fmt.Printf("open: %s/addons/mail/#drafts\n", strings.TrimRight(os.Getenv("ONLYOFFICE_URL"), "/"))
return nil
},
}
+1 -1
View File
@@ -239,7 +239,7 @@ func (c *Client) DeleteInvoice(ctx context.Context, id string) (map[string]any,
return c.deleteObject(ctx, fmt.Sprintf("/api/2.0/crm/invoice/%s.json", url.PathEscape(id)))
}
// Invoice status ids used by OnlyOffice CRM on produktor.io.
// Invoice status ids used by OnlyOffice CRM.
const (
InvoiceStatusDraft = 1
InvoiceStatusBilled = 2