chore: anonymize remaining CLI examples and hostnames
Keep public docs/help free of client names and fixed portal URLs.
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ ONLYOFFICE_PASS=
|
|||||||
# ONLYOFFICE_NAME=
|
# ONLYOFFICE_NAME=
|
||||||
# ONLYOFFICE_PASSWORD=
|
# ONLYOFFICE_PASSWORD=
|
||||||
#
|
#
|
||||||
# produktor.io operator aliases (CLI-only):
|
# Optional CLI-only aliases:
|
||||||
# OO_URL=
|
# OO_URL=
|
||||||
# OO_USER=
|
# OO_USER=
|
||||||
# OO_PASS=
|
# OO_PASS=
|
||||||
|
|||||||
+1
-1
@@ -308,7 +308,7 @@ func personsFixNamesCmd() *cobra.Command {
|
|||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "fix-names",
|
Use: "fix-names",
|
||||||
Short: "Strip company annotations from last names; keep companyId link",
|
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.
|
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.`,
|
With --company-id, only persons linked to that company are scanned.`,
|
||||||
|
|||||||
+2
-1
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -274,7 +275,7 @@ Best regards`, number, cost)
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
fmt.Printf("draft %s to=%s subject=%q pdfFileId=%d\n", mid, to, subject, fileID)
|
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
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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)))
|
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 (
|
const (
|
||||||
InvoiceStatusDraft = 1
|
InvoiceStatusDraft = 1
|
||||||
InvoiceStatusBilled = 2
|
InvoiceStatusBilled = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user