chore: format + regenerate protocol

This commit is contained in:
Peter Steinberger
2026-01-17 03:40:49 +00:00
parent 09bed2ccde
commit a82217a5f3
20 changed files with 79 additions and 74 deletions

View File

@@ -25,15 +25,9 @@ export function createMessageCliHelpers(
.option("--verbose", "Verbose logging", false);
const withMessageTarget = (command: Command) =>
command.option(
"-t, --to <dest>",
CHANNEL_TARGET_DESCRIPTION,
);
command.option("-t, --to <dest>", CHANNEL_TARGET_DESCRIPTION);
const withRequiredMessageTarget = (command: Command) =>
command.requiredOption(
"-t, --to <dest>",
CHANNEL_TARGET_DESCRIPTION,
);
command.requiredOption("-t, --to <dest>", CHANNEL_TARGET_DESCRIPTION);
const runMessageAction = async (action: string, opts: Record<string, unknown>) => {
setVerbose(Boolean(opts.verbose));

View File

@@ -7,10 +7,7 @@ export function registerMessageBroadcastCommand(message: Command, helpers: Messa
.withMessageBase(
message.command("broadcast").description("Broadcast a message to multiple targets"),
)
.requiredOption(
"--targets <target...>",
CHANNEL_TARGETS_DESCRIPTION,
)
.requiredOption("--targets <target...>", CHANNEL_TARGETS_DESCRIPTION)
.option("--message <text>", "Message to send")
.option("--media <url>", "Media URL")
.action(async (options: Record<string, unknown>) => {