groundmail-cli 0.50.1 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +14 -5
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2103,7 +2103,7 @@ async function runListKeysCommandWithClient(args, env = process.env) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
|
|
2105
2105
|
// package.json
|
|
2106
|
-
var version = "0.
|
|
2106
|
+
var version = "0.51.0";
|
|
2107
2107
|
|
|
2108
2108
|
// src/help.ts
|
|
2109
2109
|
var USAGE_LINES = [
|
|
@@ -2219,7 +2219,7 @@ var USAGE_LINES = [
|
|
|
2219
2219
|
" groundmail tenants domains add <tenant> example.com only this tenant can then send from it",
|
|
2220
2220
|
" groundmail tenants domains remove <tenant> example.com gives the domain back to the account",
|
|
2221
2221
|
" groundmail brand get your logo, colors and footer, which templates follow",
|
|
2222
|
-
' groundmail brand set [--logo-url <https url>|none] [--logo-align left|center] [--logo-width 120] [--color #2f6feb] [--company "Acme Inc"|none] [--address "\u2026"|none] [--website acme.com|none] [--settings-file brand.json] --color: buttons, links and the line across the top',
|
|
2222
|
+
' groundmail brand set [--logo-url <https url>|none] [--logo-align left|center] [--logo-width 120] [--logo-name on|off] [--color #2f6feb] [--company "Acme Inc"|none] [--address "\u2026"|none] [--website acme.com|none] [--settings-file brand.json] --color: buttons, links and the line across the top',
|
|
2223
2223
|
" groundmail senders list the names and addresses your email goes out as",
|
|
2224
2224
|
' groundmail senders create --name "Acme Billing" --address billing@mail.acme.com [--reply-to billing@acme.com] [--handle billing] [--default] address on a verified domain',
|
|
2225
2225
|
" groundmail senders get <id|handle>",
|
|
@@ -4520,13 +4520,17 @@ async function runSetCommand(args, env = process.env) {
|
|
|
4520
4520
|
const logoUrl = clearable(readFlag23(args, "--logo-url"));
|
|
4521
4521
|
const logoAlign = readFlag23(args, "--logo-align");
|
|
4522
4522
|
const logoWidth = readFlag23(args, "--logo-width");
|
|
4523
|
+
const logoName = readFlag23(args, "--logo-name");
|
|
4523
4524
|
const color = readFlag23(args, "--color");
|
|
4524
4525
|
const settingsFile = readFlag23(args, "--settings-file");
|
|
4525
4526
|
if (logoAlign !== void 0 && logoAlign !== "left" && logoAlign !== "center") {
|
|
4526
4527
|
return { exitCode: 1, error: "--logo-align must be left or center" };
|
|
4527
4528
|
}
|
|
4528
|
-
if (
|
|
4529
|
-
return { exitCode: 1, error: "--logo-
|
|
4529
|
+
if (logoName !== void 0 && logoName !== "on" && logoName !== "off") {
|
|
4530
|
+
return { exitCode: 1, error: "--logo-name must be on or off" };
|
|
4531
|
+
}
|
|
4532
|
+
if ((logoAlign !== void 0 || logoWidth !== void 0 || logoName !== void 0) && !logoUrl) {
|
|
4533
|
+
return { exitCode: 1, error: "--logo-align, --logo-width and --logo-name go with --logo-url" };
|
|
4530
4534
|
}
|
|
4531
4535
|
if (logoWidth !== void 0 && !/^\d+$/.test(logoWidth)) return { exitCode: 1, error: "--logo-width must be a whole number of px" };
|
|
4532
4536
|
if (color !== void 0 && !HEX.test(color)) return { exitCode: 1, error: "--color must be a hex colour such as #2f6feb" };
|
|
@@ -4540,7 +4544,12 @@ async function runSetCommand(args, env = process.env) {
|
|
|
4540
4544
|
}
|
|
4541
4545
|
const params = {};
|
|
4542
4546
|
if (logoUrl !== void 0) {
|
|
4543
|
-
params.logo = logoUrl === null ? null : {
|
|
4547
|
+
params.logo = logoUrl === null ? null : {
|
|
4548
|
+
url: logoUrl,
|
|
4549
|
+
align: logoAlign ?? "left",
|
|
4550
|
+
...logoWidth ? { width: Number(logoWidth) } : {},
|
|
4551
|
+
...logoName !== void 0 ? { show_name: logoName === "on" } : {}
|
|
4552
|
+
};
|
|
4544
4553
|
}
|
|
4545
4554
|
const company = clearable(readFlag23(args, "--company"));
|
|
4546
4555
|
const address = clearable(readFlag23(args, "--address"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Groundmail CLI: send email and manage mailboxes from the terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepublishOnly": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"groundmail": "0.
|
|
41
|
+
"groundmail": "0.53.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^9.0.0",
|