@nuelink/nuelink-cli 1.3.2 → 1.3.4
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/README.md +1 -1
- package/package.json +1 -1
- package/src/commands.js +1 -1
- package/src/validation.js +1 -1
package/README.md
CHANGED
|
@@ -270,7 +270,7 @@ nuelink-cli posts:create \
|
|
|
270
270
|
--youtube-playlists '[{"channelId":"1","playlistIds":["1","2"]}]'
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
Supported publish modes are `DRAFT`, `QUEUE`, `SCHEDULE`, and `IMMEDIATE`. When using `SCHEDULE`, pass `--
|
|
273
|
+
Supported publish modes are `DRAFT`, `QUEUE`, `SCHEDULE`, and `IMMEDIATE`. When using `SCHEDULE`, pass `--scheduled-at`.
|
|
274
274
|
|
|
275
275
|
## Output and Exit Codes
|
|
276
276
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuelink/nuelink-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "The official Nuelink CLI for automating social media workflows from your terminal. Schedule posts, upload media, manage brands, and integrate Nuelink into scripts, CI/CD pipelines, and AI agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nuelink",
|
package/src/commands.js
CHANGED
|
@@ -469,7 +469,7 @@ function registerCommands(program, runtimeApiKey, cliVersion) {
|
|
|
469
469
|
.option("--alt <text>", "Alt text")
|
|
470
470
|
.option("--link <url>", "Post link")
|
|
471
471
|
.option("--publish-mode <mode>", `Publish mode (${VALID_PUBLISH_MODES.join(", ")})`, "DRAFT")
|
|
472
|
-
.option("--
|
|
472
|
+
.option("--scheduled-at <value>", "Publish datetime (YYYY-MM-DD HH:mm:ss or ISO) or null")
|
|
473
473
|
.option("--post-as-story <boolean>", "Post as story: true/false")
|
|
474
474
|
.option("--post-type <type>", "Post type override")
|
|
475
475
|
.option("--comment <text>", "First comment")
|
package/src/validation.js
CHANGED
|
@@ -118,7 +118,7 @@ function validateScheduledAt(value) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
if (Number.isNaN(Date.parse(normalized))) {
|
|
121
|
-
throw new Error("Invalid
|
|
121
|
+
throw new Error("Invalid scheduled-at. Expected YYYY-MM-DD HH:mm:ss or an ISO 8601 datetime.");
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return normalized;
|