import type { Command } from "commander"; import { CHANNEL_TARGETS_DESCRIPTION } from "../../../infra/outbound/channel-target.js"; import type { MessageCliHelpers } from "./helpers.js"; export function registerMessageBroadcastCommand(message: Command, helpers: MessageCliHelpers) { helpers .withMessageBase( message.command("broadcast").description("Broadcast a message to multiple targets"), ) .requiredOption("--targets ", CHANNEL_TARGETS_DESCRIPTION) .option("--message ", "Message to send") .option("--media ", "Media URL") .action(async (options: Record) => { await helpers.runMessageAction("broadcast", options); }); }