UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

16 lines (15 loc) 603 B
import { Command } from "@oclif/core"; import ChannelRules from "../apps/channel-rules/index.js"; export default class ChannelRule extends Command { static args = ChannelRules.args; static description = 'Alias for "ably apps channel-rules"'; static flags = ChannelRules.flags; static hidden = true; // Special property to identify this as an alias command static isAlias = true; async run() { // Forward to the channel-rules command using static run method // Direct forward since it's an alias await ChannelRules.run(this.argv, this.config); } }