@genex-ai/cli-demo 0.6.0 → 0.6.1
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 +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -930,6 +930,7 @@ async function runPublish(opts) {
|
|
|
930
930
|
const body = {};
|
|
931
931
|
if (opts.title) body.title = opts.title;
|
|
932
932
|
if (opts.description) body.description = opts.description;
|
|
933
|
+
if (opts.regenerateCover) body.regenerateCover = true;
|
|
933
934
|
res = await fetch(`${apiUrl}/api/projects/${meta.id}/publish`, {
|
|
934
935
|
method: "POST",
|
|
935
936
|
headers: { "Content-Type": "application/json", Authorization: `Bearer ${token}` },
|
|
@@ -1190,6 +1191,7 @@ ${c.bold("Options for `preview` / `publish`")}
|
|
|
1190
1191
|
--no-push (publish) Skip build + push; only flip the gallery flag.
|
|
1191
1192
|
--title <title> (publish) Gallery title.
|
|
1192
1193
|
--description <text> (publish) Gallery description.
|
|
1194
|
+
--regenerate-cover (publish) Re-mint the disc cover (concept changed).
|
|
1193
1195
|
--api-url <url> (publish) Override the API base URL.
|
|
1194
1196
|
--env <path> Token env file (default: ~/.genex/env).
|
|
1195
1197
|
|
|
@@ -1266,6 +1268,9 @@ function parseArgs(argv) {
|
|
|
1266
1268
|
case "--force":
|
|
1267
1269
|
parsed.options.force = true;
|
|
1268
1270
|
break;
|
|
1271
|
+
case "--regenerate-cover":
|
|
1272
|
+
parsed.options.regenerateCover = true;
|
|
1273
|
+
break;
|
|
1269
1274
|
case "--quiet":
|
|
1270
1275
|
parsed.options.quiet = true;
|
|
1271
1276
|
break;
|
package/package.json
CHANGED