Skip to content

Commit 72103e7

Browse files
Copilotnzakas
andcommitted
Update README CLI usage to include Nostr and Slack flags
Co-authored-by: nzakas <[email protected]>
1 parent 7e23a48 commit 72103e7

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,14 @@ Usage: crosspost [options] ["Message to post."]
183183
--discord-webhook Post to Discord via webhook.
184184
--devto Post to dev.to.
185185
--telegram Post to Telegram.
186+
--slack, -s Post to Slack.
187+
--nostr, -n Post to Nostr.
186188
--mcp Start MCP server.
187189
--file The file to read the message from.
188190
--image The image file to upload with the message.
189-
--image-alt Alt text for the image (defaults: filename).
191+
--image-alt Alt text for the image (default: filename).
190192
--help, -h Show this message.
193+
--version, -v Show version number.
191194
```
192195

193196
Examples:

tests/bin.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ describe("bin", function () {
9898
it("should display correct version from package.json", done => {
9999
// Read the actual version from package.json
100100
const packagePath = path.resolve("package.json");
101-
const packageJson = JSON.parse(fs.readFileSync(packagePath, "utf8"));
101+
const packageJson = JSON.parse(
102+
fs.readFileSync(packagePath, "utf8"),
103+
);
102104
const expectedVersion = packageJson.version;
103105

104106
const child = fork(builtExecutablePath, ["--version"], {

tests/strategies/bluesky.test.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,9 @@ describe("BlueskyStrategy", function () {
665665
headers: {
666666
"content-type": "application/json",
667667
},
668-
body: {
668+
body: {
669669
error: "InvalidRequest",
670-
message: "Handle not found"
670+
message: "Handle not found",
671671
},
672672
},
673673
);
@@ -802,7 +802,8 @@ describe("BlueskyStrategy", function () {
802802
});
803803

804804
it("should truncate long URLs to 27 characters in posted text while preserving original URLs in facets", async function () {
805-
const longUrl = "https://example.com/very/long/path/that/should/be/truncated/because/it/exceeds/the/limit";
805+
const longUrl =
806+
"https://example.com/very/long/path/that/should/be/truncated/because/it/exceeds/the/limit";
806807
const text = `Check this out: ${longUrl}`;
807808
const expectedTruncatedUrl = longUrl.substring(0, 24) + "...";
808809
const expectedTruncatedText = `Check this out: ${expectedTruncatedUrl}`;
@@ -939,7 +940,8 @@ describe("BlueskyStrategy", function () {
939940

940941
it("should handle multiple URLs with mixed truncation", async function () {
941942
const shortUrl = "https://example.com";
942-
const longUrl = "https://example.org/very/long/path/that/should/be/truncated/because/it/exceeds/the/limit";
943+
const longUrl =
944+
"https://example.org/very/long/path/that/should/be/truncated/because/it/exceeds/the/limit";
943945
const text = `Short: ${shortUrl} and long: ${longUrl}`;
944946
const expectedTruncatedUrl = longUrl.substring(0, 24) + "...";
945947
const expectedText = `Short: ${shortUrl} and long: ${expectedTruncatedUrl}`;

0 commit comments

Comments
 (0)