UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

16 lines (15 loc) 617 B
import { Command } from "@oclif/core"; import ChannelRulesCreate from "../apps/channel-rules/create.js"; export default class ChannelRuleCreate extends Command { static args = ChannelRulesCreate.args; static description = 'Alias for "ably apps channel-rules create"'; static flags = ChannelRulesCreate.flags; static hidden = true; // Special property to identify this as an alias command static isAlias = true; async run() { // Forward to the channel-rules create command const command = new ChannelRulesCreate(this.argv, this.config); await command.run(); } }