Skip to content

Commit 0d9e077

Browse files
sij411claude
andcommitted
Address review suggestions for relay CLI command
- Add relay package to CLI build pipeline - Use value() helper for protocol option values in help text - Use optionName() helper for --no-tunnel reference in description 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 00f6f16 commit 0d9e077

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

packages/cli/src/relay.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import {
1313
object,
1414
option,
1515
optional,
16+
optionName,
1617
string,
18+
value,
1719
withDefault,
1820
} from "@optique/core";
1921
import { choice } from "@optique/core/valueparser";
@@ -38,8 +40,11 @@ export const relayCommand = command(
3840
"--protocol",
3941
choice(["mastodon", "litepub"], { metavar: "TYPE" }),
4042
{
41-
description:
42-
message`The relay protocol to use. "mastodon" for Mastodon-compatible relay, "litepub" for LitePub-compatible relay.`,
43+
description: message`The relay protocol to use. ${
44+
value("mastodon")
45+
} for Mastodon-compatible relay, ${
46+
value("litepub")
47+
} for LitePub-compatible relay.`,
4348
},
4449
),
4550
persistent: optional(
@@ -89,7 +94,9 @@ export const relayCommand = command(
8994
description:
9095
message`Spins up an ActivityPub relay server that forwards activities between federated instances. The server can use either Mastodon or LitePub compatible relay protocol.
9196
92-
By default, the server is tunneled to the public Internet for external access. Use --no-tunnel to run locally only.`,
97+
By default, the server is tunneled to the public internet for external access. Use ${
98+
optionName("--no-tunnel")
99+
} to run locally only.`,
93100
},
94101
);
95102

0 commit comments

Comments
 (0)