emailr-cli 1.4.1 → 1.4.2
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/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -839,7 +839,10 @@ Total: ${result.length}`);
|
|
|
839
839
|
process.exit(1);
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
|
-
cmd.command("create").description(
|
|
842
|
+
cmd.command("create").description(`Create a new template
|
|
843
|
+
|
|
844
|
+
TIP: For live preview while building, use "emailr templates draft" first.
|
|
845
|
+
It creates a local file with hot-reload preview, then use this command to save.`).requiredOption("--name <name>", "Template name").requiredOption("--subject <subject>", "Email subject").option("--html <html>", "HTML content").option("--text <text>", "Plain text content").option("--html-file <path>", "Read HTML content from file").option("--text-file <path>", "Read text content from file").option("--from <email>", "Default from email").option("--reply-to <email>", "Default reply-to email").option("--preview-text <text>", "Preview text").option("--format <format>", "Output format (json|table)", "table").action(async (options) => {
|
|
843
846
|
try {
|
|
844
847
|
const config = loadConfig();
|
|
845
848
|
const client = new Emailr3({
|
|
@@ -897,7 +900,10 @@ Open the Preview URL in your browser to view the rendered template.`);
|
|
|
897
900
|
process.exit(1);
|
|
898
901
|
}
|
|
899
902
|
});
|
|
900
|
-
cmd.command("update <id>").description(
|
|
903
|
+
cmd.command("update <id>").description(`Update a template
|
|
904
|
+
|
|
905
|
+
TIP: For live preview while editing, use "emailr templates edit <id>" first.
|
|
906
|
+
It downloads the template with hot-reload preview, then use this command to save.`).option("--name <name>", "Template name").option("--subject <subject>", "Email subject").option("--html <html>", "HTML content").option("--text <text>", "Plain text content").option("--html-file <path>", "Read HTML content from file").option("--text-file <path>", "Read text content from file").option("--from <email>", "Default from email").option("--reply-to <email>", "Default reply-to email").option("--preview-text <text>", "Preview text").option("--format <format>", "Output format (json|table)", "table").action(async (id, options) => {
|
|
901
907
|
try {
|
|
902
908
|
const config = loadConfig();
|
|
903
909
|
const client = new Emailr3({
|