emailr-cli 1.3.1 → 1.3.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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -993,7 +993,14 @@ Template: ${template.name}`);
|
|
|
993
993
|
process.exit(1);
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
|
-
cmd.command("edit <id>").description(
|
|
996
|
+
cmd.command("edit <id>").description(`Start a live editing session for a template.
|
|
997
|
+
|
|
998
|
+
AGENTIC WORKFLOW:
|
|
999
|
+
1. Run: emailr templates edit <id> --file ./template.html
|
|
1000
|
+
2. Edit the file at ./template.html - browser auto-refreshes on save
|
|
1001
|
+
3. When done: emailr templates update <id> --html-file ./template.html
|
|
1002
|
+
|
|
1003
|
+
This command fetches the template HTML, saves it locally, and starts a live preview server with hot-reload. Any changes to the file are instantly reflected in the browser.`).option("--file <path>", "Path to save the HTML file for editing", "./template.html").option("--no-open", "Do not automatically open browser").action(async (id, options) => {
|
|
997
1004
|
try {
|
|
998
1005
|
const config = loadConfig();
|
|
999
1006
|
const client = new Emailr3({
|