@neopress/cli 0.3.1 → 3.2.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/bin.cjs +6 -12
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -4911,12 +4911,9 @@ function registerTemplateCommands(program3) {
|
|
|
4911
4911
|
const template = await client.templates.get();
|
|
4912
4912
|
output(template);
|
|
4913
4913
|
});
|
|
4914
|
-
templates.command("mark").description("Mark or update the active site as a template").requiredOption("--name <name>", "Template display name").
|
|
4915
|
-
"--
|
|
4916
|
-
"Reference URL for template
|
|
4917
|
-
).requiredOption(
|
|
4918
|
-
"--design-reference-url <url>",
|
|
4919
|
-
"Reference URL for template design"
|
|
4914
|
+
templates.command("mark").description("Mark or update the active site as a template").requiredOption("--name <name>", "Template display name").option("--description <description>", "Template description, up to 150 characters").requiredOption("--industry <industry>", "Template industry key").requiredOption(
|
|
4915
|
+
"--reference-url <url>",
|
|
4916
|
+
"Reference URL for template provenance"
|
|
4920
4917
|
).option(
|
|
4921
4918
|
"--preview-img-url <url>",
|
|
4922
4919
|
"Preview image URL. Repeat for multiple images.",
|
|
@@ -4926,12 +4923,9 @@ function registerTemplateCommands(program3) {
|
|
|
4926
4923
|
const client = await getClientAsync();
|
|
4927
4924
|
const template = await client.templates.mark({
|
|
4928
4925
|
name: options.name,
|
|
4926
|
+
description: options.description,
|
|
4929
4927
|
industry: options.industry,
|
|
4930
|
-
|
|
4931
|
-
reference: {
|
|
4932
|
-
structure: options.structureReferenceUrl,
|
|
4933
|
-
design: options.designReferenceUrl
|
|
4934
|
-
},
|
|
4928
|
+
referenceUrl: options.referenceUrl,
|
|
4935
4929
|
previewImgUrls: options.previewImgUrl.length > 0 ? options.previewImgUrl : void 0
|
|
4936
4930
|
});
|
|
4937
4931
|
output(template);
|
|
@@ -4945,7 +4939,7 @@ function registerTemplateCommands(program3) {
|
|
|
4945
4939
|
|
|
4946
4940
|
// src/bin.ts
|
|
4947
4941
|
var program2 = new Command();
|
|
4948
|
-
program2.name("neopress").description("Neopress CLI \u2014 manage your site from the terminal").version("
|
|
4942
|
+
program2.name("neopress").description("Neopress CLI \u2014 manage your site from the terminal").version("3.2.0").option("--json", "Output in JSON format (for AI tools and pipes)").option("--no-input", "Non-interactive mode").hook("preAction", (thisCommand) => {
|
|
4949
4943
|
const opts = thisCommand.optsWithGlobals();
|
|
4950
4944
|
if (opts.json) setJsonMode(true);
|
|
4951
4945
|
});
|